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 !1142
parents 49a081d1 a108ce41
......@@ -934,6 +934,13 @@ class system{
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){
global $app;
if($allow_symlink == false && @file_exists($file) && $this->checkpath($file) == 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