Beispiel #1
0
 /**
  * Deletes a previously made work path
  *
  * @param string $tag Unique identifier for temp space
  *
  * @return bool
  */
 protected static function deleteWorkPath($tag)
 {
     $_root = Disk::path([sys_get_temp_dir(), 'dfe', $tag]);
     return is_dir($_root) ? Disk::rmdir($_root, true) : true;
 }
 /**
  * @param string $workPath
  *
  * @return bool
  */
 public function deleteWorkPath($workPath)
 {
     return is_dir($workPath) && Disk::rmdir($workPath, true);
 }