File: fs-utils.coffee
Defined in: | lib/resin/data/fs-utils |
Method Summary
-
~
(Boolean)
isValidPath(p)
Private
Check if valid path
console.log isValidPath('/Users/me')
-
~
(void)
isDirectory(directory, callback)
Private
Check if path is directory
console.log isDirectory('/usr/local/share')
Method Details
~
(Boolean)
isValidPath(p)
Private
TODO:
There should be more complex checks here
Check if valid path
console.log isValidPath('/Users/me') # True
console.log isValidPath([ 1, 2, 3 ]) # False
~
(void)
isDirectory(directory, callback)
Private
Check if path is directory
console.log isDirectory('/usr/local/share') # True
console.log isDirectory('/Users/me/app.js') # False