Change Ownership
Path:
/src/method/chowns.coffeecompiled 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-Booleandereference symbolic links and go into themìgnoreErrors-Booleango on and ignore IO errors
chmods()
Usage:
chmods(source, options, cb)
- Parameter
-
source-Stringfile path or directory to searchoptions-Objectselection 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-Stringfile path or directory to searchoptions-Objectselection of files to search and user/group id
- Throws
-
Errorif something went wrong- No file to change owner for found!