Esempio n. 1
0
 /**
  * @param IFile $file
  * @param $path
  * @return IFile
  */
 public function publishFile(IFile $file, $path)
 {
     $onlyPath = dirname($path);
     if (!file_exists($onlyPath)) {
         FilesystemStorage::mkdir($onlyPath, 0777, true);
     }
     $file->save($path);
     return $file;
 }