예제 #1
0
 /**
  * Returns the folders on the root level of the storage
  * or the first mount point of this storage for this user
  * if $respectFileMounts is set.
  *
  * @param bool $respectFileMounts
  * @return Folder
  */
 public function getRootLevelFolder($respectFileMounts = true)
 {
     if ($respectFileMounts && !empty($this->fileMounts)) {
         $mount = reset($this->fileMounts);
         return $mount['folder'];
     } else {
         return ResourceFactory::getInstance()->createFolderObject($this, $this->driver->getRootLevelFolder(), '');
     }
 }