summaryrefslogtreecommitdiffstats
path: root/lib/files.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-05-29 17:01:34 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-05-29 17:01:34 +0200
commitf48344df309819d4f121dfc0b98aca142db3ed14 (patch)
treebf69318d5e7cb693df9a5dea91aa90664c0e7162 /lib/files.php
parent85cae2cc3237637d10727e6ae5c2fb51c5912142 (diff)
downloadnextcloud-server-f48344df309819d4f121dfc0b98aca142db3ed14.tar.gz
nextcloud-server-f48344df309819d4f121dfc0b98aca142db3ed14.zip
recursive deletion is now in OC_HELPER
Diffstat (limited to 'lib/files.php')
-rw-r--r--lib/files.php18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/files.php b/lib/files.php
index ac2129d0ac4..2a56c5b4b37 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -311,24 +311,6 @@ function zipAddDir($dir,$zip,$internalDir=''){
}
}
-//remove a dir and it's content
-function delTree($dir) {
- if (!file_exists($dir)) return true;
- if (!is_dir($dir) || is_link($dir)) return unlink($dir);
- foreach (scandir($dir) as $item) {
- if ($item == '.' || $item == '..') continue;
- if(is_file($dir.'/'.$item)){
- unlink($dir.'/'.$item);
- }elseif(is_dir($dir.'/'.$item)){
- if (!delTree($dir. "/" . $item)){
- return false;
- };
- }
- }
- $return=rmdir($dir);
- return $return;
-}
-
if(!function_exists('sys_get_temp_dir')) {
function sys_get_temp_dir() {
if( $temp=getenv('TMP') ) return $temp;