fs.isFile(path) returns false if given path does not exist

This commit is contained in:
Corey Johnson
2012-05-08 10:18:17 -07:00
parent b528196d1b
commit 545671a641
3 changed files with 24 additions and 1 deletions

View File

@@ -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.