mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
fs.isFile(path) returns false if given path does not exist
This commit is contained in:
@@ -51,7 +51,7 @@ module.exports =
|
||||
# Returns true if the file specified by path exists and is a
|
||||
# regular file.
|
||||
isFile: (path) ->
|
||||
not $native.isDirectory path
|
||||
$native.isFile path
|
||||
|
||||
# Returns an array with all the names of files contained
|
||||
# in the directory path.
|
||||
|
||||
Reference in New Issue
Block a user