Пример #1
0
 public static function delete($path)
 {
     if (!_is_dir($path)) {
         return false;
     }
     /*
     		ls($path, function($subpath, $subfile) {
     			if (is_dir($subpath))
     				 @Folder::delete($subpath);
     			else @File::delete($subpath);
     		});
     		
     		$err = !@rmdir($path);
     		return $err;
     		/**/
     trim_exec("rm -rf \"{$path}\"");
 }
Пример #2
0
function _chmod($file, $mod = 777)
{
    return trim_exec("chmod {$mod} \"{$file}\" && echo ok");
}