MCPcopy Index your code
hub / github.com/nodejs/node / makeDirectoryWritable

Function makeDirectoryWritable

test/parallel/test-fs-rm.js:511–519  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

509 }
510
511 function makeDirectoryWritable(dir) {
512 if (fs.existsSync(dir)) {
513 if (common.isWindows) {
514 execSync(`icacls ${dir} /remove:d "everyone"`);
515 } else {
516 fs.chmodSync(dir, 0o777);
517 }
518 }
519 }
520
521 {
522 // Check that deleting a file that cannot be accessed using rmsync throws

Callers 1

test-fs-rm.jsFile · 0.70

Calls 3

execSyncFunction · 0.85
existsSyncMethod · 0.45
chmodSyncMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…