Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  Do not chmod too much.
  • Loading branch information
Jelle-S committed Mar 3, 2017
2 parents 20f53e3 + 3bafc09 commit 9627c13
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/PartialCleanDirs.php
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,6 @@ protected function cleanDir($dir, $keep)
while ($items) {
$item = reset($items);
try {
// To delete a file we must have access rights on the parent
// directory.
$this->fs->chmod(dirname(realpath($item)), 0777, 0000, true);
$this->fs->chmod($item, 0777, 0000, true);
} catch (IOException $e) {
// If chmod didn't work and the exception contains a path, try
Expand Down

0 comments on commit 9627c13

Please sign in to comment.