Skip to content
Snippets Groups Projects
Commit 9ee4fcdf authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Only show 'Shared' directory if files are shared with you

parent 59256973
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,10 @@ class OC_Filestorage_Shared extends OC_Filestorage {
public function __construct($arguments) {
$this->datadir = $arguments['datadir'];
if (!OC_Filesystem::is_dir($this->datadir)) {
if (OC_Share::getItemsInFolder($this->datadir) && !OC_Filesystem::is_dir($this->datadir)) {
OC_Filesystem::mkdir($this->datadir);
} else if (OC_Filesystem::is_dir($this->datadir)) {
OC_Filesystem::rmdir($this->datadir);
}
$this->datadir .= "/";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment