How to use the lutimesSync function from fs

Find comprehensive JavaScript fs.lutimesSync code examples handpicked from public code repositorys.

129
130
131
132
133
134
135
136
137
138
//
function syncTests() {
  fs.utimesSync(pathType(tmpdir.path), atime, mtime);
  expect_ok('utimesSync', tmpdir.path, undefined, atime, mtime);

  fs.lutimesSync(pathType(lpath), atime, mtime);
  expect_ok('lutimesSync', lpath, undefined, atime, mtime, fs.lstatSync);

  // Some systems don't have futimes
  // if there's an error, it should be ENOSYS
fork icon42
star icon19
watch icon0