How to use the lchownSync function from fs-extra

Find comprehensive JavaScript fs-extra.lchownSync code examples handpicked from public code repositorys.

124
125
126
127
128
129
130
131
132
133
    logwarn('Symlink target doesn\'t exist: ' + realpath);
  }
}
if (data.hasOwnProperty('uid') && data.hasOwnProperty('gid')) {
  logdebug('Setting UID ' + data.uid + ', GID ' + data.gid + ' for ' + path);
  fs.lchownSync(path, data.uid, data.gid);
  if (followSymlink) {
    fs.chownSync(realpath, data.uid, data.gid);
  }
}
fork icon0
star icon1
watch icon2

function icon

fs-extra.readFileSync is the most popular function in fs-extra (9724 examples)