|
@@ 214-215 (lines=2) @@
|
| 211 |
|
if ($view->is_file($from)) { |
| 212 |
|
$info_from = $view->getFileInfo($from); |
| 213 |
|
$info_to = $view->getFileInfo($to); |
| 214 |
|
if ($view->file_exists('files_zsync/'.$info_from->getId())) { |
| 215 |
|
$view->copy('files_zsync/'.$info_from->getId(), 'files_zsync/'.$info_to->getId()); |
| 216 |
|
} |
| 217 |
|
} elseif ($view->is_dir($from)) { |
| 218 |
|
/* if a folder then iteratively copy all zsync metadata for all files in folder, including subdirs */ |
|
@@ 229-230 (lines=2) @@
|
| 226 |
|
} elseif ($view->is_file($from_current.'/'.$entry)) { |
| 227 |
|
$info_from = $view->getFileInfo($from_current.'/'.$entry); |
| 228 |
|
$info_to = $view->getFileInfo($to_current.'/'.$entry); |
| 229 |
|
if ($view->file_exists('files_zsync/'.$info_from->getId())) { |
| 230 |
|
$view->copy('files_zsync/'.$info_from->getId(), 'files_zsync/'.$info_to->getId()); |
| 231 |
|
} |
| 232 |
|
} |
| 233 |
|
} |