|
|
|
@ -261,7 +261,7 @@ function copyDirTo($orig_dir_path, $destination, $move = true) { |
|
|
|
$save_dir = getcwd(); |
|
|
|
$save_dir = getcwd(); |
|
|
|
// Extract directory name - create it at destination - update destination trail |
|
|
|
// Extract directory name - create it at destination - update destination trail |
|
|
|
$dir_name = basename($orig_dir_path); |
|
|
|
$dir_name = basename($orig_dir_path); |
|
|
|
if (is_dir($dir_name)) { |
|
|
|
if (is_dir($orig_dir_path)) { |
|
|
|
mkdir($destination.'/'.$dir_name, api_get_permissions_for_new_directories()); |
|
|
|
mkdir($destination.'/'.$dir_name, api_get_permissions_for_new_directories()); |
|
|
|
$destination_trail = $destination.'/'.$dir_name; |
|
|
|
$destination_trail = $destination.'/'.$dir_name; |
|
|
|
if (is_dir($destination)) { |
|
|
|
if (is_dir($destination)) { |
|
|
|
|