fix moveDir() which didn't work at all

This commit is contained in:
Uwe Steinmann 2022-11-17 11:33:43 +01:00
parent 09f6dc64a6
commit e719f31167

View File

@ -496,10 +496,10 @@ class SeedDMS_Core_File {
*/ */
static function moveDir($sourcePath, $targetPath) { /* {{{ */ static function moveDir($sourcePath, $targetPath) { /* {{{ */
/** @noinspection PhpUndefinedFunctionInspection */ /** @noinspection PhpUndefinedFunctionInspection */
if (!copyDir($sourcePath, $targetPath)) if (!self::copyDir($sourcePath, $targetPath))
return false; return false;
/** @noinspection PhpUndefinedFunctionInspection */ /** @noinspection PhpUndefinedFunctionInspection */
return removeDir($sourcePath); return self::removeDir($sourcePath);
} /* }}} */ } /* }}} */
// code by Kioob (php.net manual) // code by Kioob (php.net manual)