- fixed recursive call of removeDir() and copyDir()

This commit is contained in:
steinm 2011-12-20 07:41:13 +00:00
parent 957b13d84f
commit 6bb0bf3382

View File

@ -110,7 +110,7 @@ class LetoDMS_Core_File {
continue; continue;
else if (is_dir($path . $entry)) else if (is_dir($path . $entry))
{ {
if (!removeDir($path . $entry . "/")) if (!self::removeDir($path . $entry . "/"))
return false; return false;
} }
else else
@ -130,7 +130,7 @@ class LetoDMS_Core_File {
if ($entry == ".." || $entry == ".") if ($entry == ".." || $entry == ".")
continue; continue;
else if (is_dir($sourcePath . $entry)) { else if (is_dir($sourcePath . $entry)) {
if (!copyDir($sourcePath . $entry . "/", $targetPath . $entry . "/")) if (!self::copyDir($sourcePath . $entry . "/", $targetPath . $entry . "/"))
return false; return false;
} else { } else {
if (!@copy($sourcePath . $entry, $targetPath . $entry)) if (!@copy($sourcePath . $entry, $targetPath . $entry))