Skip to content

Commit 3bafc09

Browse files
committed
Do not chmod too much.
1 parent c63c396 commit 3bafc09

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/PartialCleanDirs.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,6 @@ protected function cleanDir($dir, $keep)
248248
while ($items) {
249249
$item = reset($items);
250250
try {
251-
// To delete a file we must have access rights on the parent
252-
// directory.
253-
$this->fs->chmod(dirname(realpath($item)), 0777, 0000, true);
254251
$this->fs->chmod($item, 0777, 0000, true);
255252
} catch (IOException $e) {
256253
// If chmod didn't work and the exception contains a path, try

0 commit comments

Comments
 (0)