Split out file and directory callbacks

This commit is contained in:
Kevin Sawicki
2012-10-09 00:28:28 -07:00
parent 71c161d527
commit 8b61e6a9df
5 changed files with 47 additions and 20 deletions

View File

@@ -102,8 +102,8 @@ module.exports =
@makeTree(@directory(path))
@makeDirectory(path)
traverseTree: (rootPath, fn) ->
$native.traverseTree(rootPath, fn)
traverseTree: (rootPath, onFile, onDirectory) ->
$native.traverseTree(rootPath, onFile, onDirectory)
lastModified: (path) ->
$native.lastModified(path)