From 85cae2cc3237637d10727e6ae5c2fb51c5912142 Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Sun, 29 May 2011 17:00:34 +0200
Subject: [PATCH] recursive copy is now in OC_HELPER

---
 lib/files.php | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/lib/files.php b/lib/files.php
index 594b96a9c5..ac2129d0ac 100644
--- a/lib/files.php
+++ b/lib/files.php
@@ -343,22 +343,6 @@ if(!function_exists('sys_get_temp_dir')) {
     }
 }
 
-function recursive_copy($src,$dst) {
-	$dir = opendir($src);
-	@mkdir($dst);
-	while(false !== ( $file = readdir($dir)) ) {
-		if (( $file != '.' ) && ( $file != '..' )) {
-			if ( is_dir($src . '/' . $file) ) {
-				recursive_copy($src . '/' . $file,$dst . '/' . $file);
-			}
-			else {
-				copy($src . '/' . $file,$dst . '/' . $file);
-			}
-		}
-	}
-	closedir($dir);
-}
-
 global $FAKEDIRS;
 $FAKEDIRS=array();
 
-- 
GitLab