Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit d68c891

Browse files
committed
Catch handle erros on purge operations
1 parent 5adfd85 commit d68c891

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

core/src/plugins/access.fs/class.fsAccessDriver.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1973,6 +1973,10 @@ public function recursivePurge($dirName, $hardPurgeTime, $softPurgeTime = 0)
19731973
if(class_exists("ShareCenter")){
19741974
$shareCenter = ShareCenter::getShareCenter("action.share");
19751975
}
1976+
if($handle === false){
1977+
$this->logError(__FUNCTION__, "Cannot open folder ".$dirName);
1978+
return;
1979+
}
19761980
while (false !== ($entry = readdir($handle))) {
19771981
if ($entry == "" || $entry == ".." || AJXP_Utils::isHidden($entry) ) {
19781982
continue;

0 commit comments

Comments
 (0)