function webfm_move in Web File Manager 5
Same name and namespace in other branches
- 5.2 webfm_file.inc \webfm_move()
Move a directory or file and update database
@ret bool -true if any directory change (used to switch client cache)
Parameters
string $source - the source directory path:
string $dest - the destination directory name:
bool $uid - uid of user making move request:
string &$err_arr - ref to error array for client feedback:
1 call to webfm_move()
- webfm_ajax in ./
webfm.module - Ajax post requests
File
- ./
webfm_file.inc, line 206
Code
function webfm_move($source, $dest, $uid, &$err_arr) {
$dest .= '/' . strrev(substr(strrev($source), 0, strpos(strrev($source), '/')));
return webfm_rename($source, $dest, $uid, $err_arr);
}