示例#1
0
文件: storage.php 项目: gvde/core
 /**
  * @param string $path
  * @param \OC\Files\Storage\Storage $storage
  * @return \OCA\Files_Sharing\External\Scanner
  */
 public function getScanner($path = '', $storage = null)
 {
     if (!$storage) {
         $storage = $this;
     }
     if (!$this->remoteIsOwnCloud()) {
         return parent::getScanner($path, $storage);
     }
     if (!isset($this->scanner)) {
         $this->scanner = new Scanner($storage);
     }
     return $this->scanner;
 }