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

Commit

Permalink
Merge pull request #549 from Ellega/hide.recycle_bin2
Browse files Browse the repository at this point in the history
Folder "Recycle_bin" must be Hidden with attribute "H" if Windows OS
  • Loading branch information
cdujeu committed Apr 21, 2014
2 parents 9807ac2 + f2ba7fc commit e147725
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/plugins/access.fs/class.fsAccessDriver.php
Expand Up @@ -70,6 +70,8 @@ public function initRepository()
@mkdir($path."/".$recycle);
if (!is_dir($path."/".$recycle)) {
throw new AJXP_Exception("Cannot create recycle bin folder. Please check repository configuration or that your folder is writeable!");
} elseif (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$attributes = shell_exec('attrib +H ' . escapeshellarg($path . "/" . $recycle));
}
}
$dataTemplate = $this->repository->getOption("DATA_TEMPLATE");
Expand Down

0 comments on commit e147725

Please sign in to comment.