Skip to content
Snippets Groups Projects
Commit 8df54ec0 authored by arpeggio's avatar arpeggio
Browse files

Issue #3255494 by orb: Fixed File appended an incrementing number results to...

Issue #3255494 by orb: Fixed File appended an incrementing number results to generate "Failed extracting %file" error
parent 6fc5fcfb
No related branches found
No related tags found
No related merge requests found
......@@ -192,7 +192,7 @@ abstract class DatabaseFileUtilityBase implements DatabaseFileUtilityInterface {
$sourceScanFiles = file_scan_directory($sourceRealPath, "/^$file$/");
foreach ($sourceScanFiles as $sourceScanFile) {
if ($sourceScanFile->filename == $file) {
file_unmanaged_move($sourceScanFile->uri, $sourceFilePath);
file_unmanaged_move($sourceScanFile->uri, $sourceFilePath, FILE_EXISTS_REPLACE);
break;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment