How to use the chownr.sync function in chownr

To help you get started, we’ve selected a few chownr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github npm / node-tar / lib / mkdir.js View on Github external
const done = (created) => {
    cache.set(dir, true)
    if (created && doChown)
      chownr.sync(created, uid, gid)
    if (needChmod)
      fs.chmodSync(dir, mode)
  }
github sx1989827 / DOClever / node_modules / fsevents / node_modules / tar / lib / mkdir.js View on Github external
const done = (created) => {
    cache.set(dir, true)
    if (created && doChown)
      chownr.sync(created, uid, gid)
    if (needChmod)
      fs.chmodSync(dir, mode)
  }
github GoogleContainerTools / kpt / docsy / node_modules / fsevents / node_modules / tar / lib / mkdir.js View on Github external
const done = (created) => {
    cache.set(dir, true)
    if (created && doChown)
      chownr.sync(created, uid, gid)
    if (needChmod)
      fs.chmodSync(dir, mode)
  }

chownr

like `chown -R`

BlueOak-1.0.0
Latest version published 28 days ago

Package Health Score

72 / 100
Full package analysis

Popular chownr functions