mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
- fixed recursive call of removeDir() and copyDir()
This commit is contained in:
parent
957b13d84f
commit
6bb0bf3382
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user