Merge pull request #558 from ProgerXP/patch-locks-dev
Fixing "Cannot remove ...: Permission denied" in File and bundle:: task
This commit is contained in:
@@ -54,6 +54,7 @@ abstract class Provider {
|
|||||||
|
|
||||||
File::rmdir($work.'zip');
|
File::rmdir($work.'zip');
|
||||||
|
|
||||||
|
$zip->close();
|
||||||
@unlink($target);
|
@unlink($target);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -273,7 +273,8 @@ class File {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($delete) rmdir($source);
|
unset($items);
|
||||||
|
if ($delete) @rmdir($source);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -306,6 +307,7 @@ class File {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($items);
|
||||||
if ( ! $preserve) @rmdir($directory);
|
if ( ! $preserve) @rmdir($directory);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user