Esempio n. 1
0
 /**
  * @deprecated OC_Filesystem is replaced by \OC\Files\Filesystem
  */
 public static function stat($path)
 {
     return \OC\Files\Filesystem::stat($path);
 }
Esempio n. 2
0
 /**
  * @brief Ensure that the fileinfo cache is filled
  * @note Uses OC_FileCache or a direct stat
  */
 protected function getFileinfoCache()
 {
     if (!isset($this->fileinfo_cache)) {
         if ($fileinfo_cache = \OC\Files\Filesystem::getFileInfo($this->path)) {
         } else {
             $fileinfo_cache = \OC\Files\Filesystem::stat($this->path);
         }
         $this->fileinfo_cache = $fileinfo_cache;
     }
 }