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 set
  • group - String|Integer - group name or id to set
  • dereference - 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 search
  • options - Object selection of files to search and user/group id
  • cb - 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 search
  • options - Object selection of files to search and user/group id
Throws
  • Error if something went wrong
    • No file to change owner for found!