Ejemplo n.º 1
0
 public function preCopy($path1, $path2)
 {
     if (!self::$rootView) {
         self::$rootView = new \OC\Files\View('');
     }
     return self::$rootView->filesize($path1) < $this->getFreeSpace($path2) or $this->getFreeSpace($path2) == -1;
 }
Ejemplo n.º 2
0
 public function preCopy($path1, $path2)
 {
     if (!self::$rootView) {
         self::$rootView = new OC_FilesystemView('');
     }
     return self::$rootView->filesize($path1) < $this->getFreeSpace() or $this->getFreeSpace() == 0;
 }