(dir)
| 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 |
no test coverage detected
searching dependent graphs…