Skip to content
Snippets Groups Projects
Commit 6477cf68 authored by Till Brehm's avatar Till Brehm
Browse files

Merge branch 'system-move' into 'develop'

Add move to system.inc.php

See merge request ispconfig/ispconfig3!1142
parents 49a081d1 a108ce41
No related branches found
No related tags found
1 merge request!1142Add move to system.inc.php
Pipeline #4975 passed
...@@ -934,6 +934,13 @@ class system{ ...@@ -934,6 +934,13 @@ class system{
return copy($file1, $file2); return copy($file1, $file2);
} }
function move($file1, $file2) {
$cmd = 'mv ? ?';
$this->exec_safe($cmd, $file1, $file2);
$return_var = $this->last_exec_retcode();
return $return_var == 0 ? true : false;
}
function touch($file, $allow_symlink = false){ function touch($file, $allow_symlink = false){
global $app; global $app;
if($allow_symlink == false && @file_exists($file) && $this->checkpath($file) == false) { if($allow_symlink == false && @file_exists($file) && $this->checkpath($file) == false) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment