Skip to content

Commit 6477cf6

Browse files
author
Till Brehm
committed
Merge branch 'system-move' into 'develop'
Add move to system.inc.php See merge request ispconfig/ispconfig3!1142
2 parents 49a081d + a108ce4 commit 6477cf6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

server/lib/classes/system.inc.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -934,6 +934,13 @@ function copy($file1, $file2) {
934934
return copy($file1, $file2);
935935
}
936936

937+
function move($file1, $file2) {
938+
$cmd = 'mv ? ?';
939+
$this->exec_safe($cmd, $file1, $file2);
940+
$return_var = $this->last_exec_retcode();
941+
return $return_var == 0 ? true : false;
942+
}
943+
937944
function touch($file, $allow_symlink = false){
938945
global $app;
939946
if($allow_symlink == false && @file_exists($file) && $this->checkpath($file) == false) {

0 commit comments

Comments
 (0)