Exemplo n.º 1
0
 /**
  * Overrrides the parent create() to set a different chmod, because the user
  * who create the dir is not always the one who reads.
  *
  * @see parent::create()
  */
 public function create()
 {
     list($base, $name) = sfAssetsLibraryTools::splitPath($this->getRelativePath());
     $status = sfAssetsLibraryTools::mkdir($name, $base);
     $this->chmod_R($this->getFullPath(), 0604, 0755);
     return $status;
 }
 /**
  * Physically creates folder
  *
  * @return bool succes
  */
 public function createFolder()
 {
     list($base, $name) = sfAssetsLibraryTools::splitPath($this->getRelativePath());
     return sfAssetsLibraryTools::mkdir($name, $base);
 }