|
|
|
@ -63,9 +63,8 @@ function my_delete($file) |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
return false; // no file or directory to delete |
|
|
|
|
} |
|
|
|
|
return false; // no file or directory to delete |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -258,9 +257,8 @@ function move($source, $target, $forceMove = true, $moveContent = false) |
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
return false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -270,6 +268,7 @@ function move($source, $target, $forceMove = true, $moveContent = false) |
|
|
|
|
* |
|
|
|
|
* @param string $source the path of the directory to move |
|
|
|
|
* @param string $destination the path of the new area |
|
|
|
|
* @param bool $move Whether we want to remove the source at the end |
|
|
|
|
* |
|
|
|
|
* @return bool false on error |
|
|
|
|
*/ |
|
|
|
@ -347,8 +346,8 @@ function getextension($filename) |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Get a list of all PHP (.php) files in a given directory. Includes .tpl files |
|
|
|
|
* @param $base_path The base path in which to find the corresponding files |
|
|
|
|
* @param $includeStatic Include static .html, .htm and .css files |
|
|
|
|
* @param string $base_path The base path in which to find the corresponding files |
|
|
|
|
* @param bool $includeStatic Include static .html, .htm and .css files |
|
|
|
|
* @return array |
|
|
|
|
*/ |
|
|
|
|
function getAllPhpFiles($base_path, $includeStatic = false) |
|
|
|
|