Esempio n. 1
0
File: Block.php Progetto: jasny/Q
 /**
  * Copy or rename/move this file.
  * 
  * @param callback $fn     copy or rename
  * @param Fs_Dir   $dir
  * @param string   $name
  * @param int      $flags  Fs::% options as binary set
  * @return Fs_Node
  */
 protected function doCopyRename($fn, $dir, $name, $flags = 0)
 {
     if ($fn == 'copy') {
         throw new Fs_Exception("Unable to copy '{$this->_path}': File is a block device");
     }
     return parent::doCopyRename($fn, $dir, $name, $flags);
 }