Change Ownership
Path:
/src/method/chowns.coffee
compiled to/lib/method/chowns.js
Recursive change file ownership likefs.chown().
The options object is the same as used forFind Files with the additional mode:
user
-String|Integer
- user name or id to setgroup
-String|Integer
- group name or id to setdereference
-Boolean
dereference symbolic links and go into themìgnoreErrors
-Boolean
go on and ignore IO errors
chmods()
Usage:
chmods(source, options, cb)
- Parameter
-
source
-String
file path or directory to searchoptions
-Object
selection of files to search and user/group idcb
-function(Error)
callback with error if something went wrong- No file to change owner for found!
chmodsSync()
Usage:
chmodsSync(source, options)
- Parameter
-
source
-String
file path or directory to searchoptions
-Object
selection of files to search and user/group id
- Throws
-
Error
if something went wrong- No file to change owner for found!