Closed (outdated)
Project:
Migrate
Version:
7.x-2.6-rc1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jan 2014 at 20:50 UTC
Updated:
21 Feb 2018 at 13:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mariacha1 commentedHere's the patch
Comment #2
jcandan commentedthis patch works. tested locally, and very pleased. please commit to 7.x-2.6-rc1.
Comment #3
mikeryanThe patch looks harmless enough - but can you explain the use case? The MigrateFileUriAsIs class simply copies URIs (which I would expect to be remote - http://example.com/foobar etc.), it does not copy/create any files on the destination side so I would not expect there to be any files to be accidentally deleted. Are you manually copying files into the Drupal files directory and copying relative references directly with MigrateFileUriAsIs? In that case I would use MigrateFileUri with preserve_files set to TRUE and file_replace set to MigrateFile::FILE_EXISTS_REUSE.
Comment #4
pifagor