Commit a108ce41 authored by Michael Seevogel's avatar Michael Seevogel
Browse files

modified function move to use mv

parent b9927dab
......@@ -935,11 +935,10 @@ class system{
}
function move($file1, $file2) {
$result = $this->copy($file1, $file2);
if($result) {
$result &= $this->unlink($file1);
}
return $result;
$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){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment