projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
669b4f0
)
invalid error
author
Alan
<alan@roojs.com>
Wed, 30 Mar 2022 08:34:07 +0000
(16:34 +0800)
committer
Alan
<alan@roojs.com>
Wed, 30 Mar 2022 08:34:07 +0000
(16:34 +0800)
System.php
patch
|
blob
|
history
diff --git
a/System.php
b/System.php
index
698257c
..
e698eb4
100644
(file)
--- a/
System.php
+++ b/
System.php
@@
-635,7
+635,7
@@
class System
*/
static function rename($src, $dest)
{
- if (file_exists($src)) {
+ if (
!
file_exists($src)) {
trigger_error("Rename source location does not exist",E_USER_ERROR);
}
$cmd = System::which('mv') . ' ' . escapeshellarg($src) . ' ' . escapeshellarg($dest);