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

Commit

Permalink
Catch handle erros on purge operations
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jan 26, 2015
1 parent 5adfd85 commit d68c891
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/src/plugins/access.fs/class.fsAccessDriver.php
Expand Up @@ -1973,6 +1973,10 @@ public function recursivePurge($dirName, $hardPurgeTime, $softPurgeTime = 0)
if(class_exists("ShareCenter")){
$shareCenter = ShareCenter::getShareCenter("action.share");
}
if($handle === false){
$this->logError(__FUNCTION__, "Cannot open folder ".$dirName);
return;
}
while (false !== ($entry = readdir($handle))) {
if ($entry == "" || $entry == ".." || AJXP_Utils::isHidden($entry) ) {
continue;
Expand Down

0 comments on commit d68c891

Please sign in to comment.