Only show 'Shared' directory if files are shared with you
This commit is contained in:
parent
5925697374
commit
9ee4fcdf2f
1 changed files with 3 additions and 1 deletions
|
@ -32,8 +32,10 @@ class OC_Filestorage_Shared extends OC_Filestorage {
|
||||||
|
|
||||||
public function __construct($arguments) {
|
public function __construct($arguments) {
|
||||||
$this->datadir = $arguments['datadir'];
|
$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);
|
OC_Filesystem::mkdir($this->datadir);
|
||||||
|
} else if (OC_Filesystem::is_dir($this->datadir)) {
|
||||||
|
OC_Filesystem::rmdir($this->datadir);
|
||||||
}
|
}
|
||||||
$this->datadir .= "/";
|
$this->datadir .= "/";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue