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

Commit

Permalink
Folder "Recycle_bin" must be Hidden with attribute "H" if Windows OS
Browse files Browse the repository at this point in the history
Useful if the Repo is accessed directly from "explorer" Windows for
others user who don't use Pydio.
In this case the folder "Recycle_bin" must be Hidden.
  • Loading branch information
Nanomani committed Apr 19, 2014
1 parent f6c0a6f commit f2ba7fc
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 f2ba7fc

Please sign in to comment.