Skip to content

Commit

Permalink
Update the private file migration source files locally and skip files…
Browse files Browse the repository at this point in the history
… with a size of 0

Ref #489
  • Loading branch information
Keegan Rankin committed Oct 15, 2024
1 parent 2a3d8d5 commit 9696fff
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source:
plugin: d7_file
scheme: private
constants:
source_base_path: /
source_base_path: /var/www/html/web
process:
fid:
-
Expand All @@ -26,19 +26,29 @@ process:
-
plugin: get
source: filename
# Skip rows that contain files of filesize 0
# DO NOT use this for vimeo and youtube scheme migrations
_filesize:
plugin: skip_on_empty
method: row
message: 'Row skipped due to missing or corrupt file'
source: filesize
source_full_path:
-
plugin: concat
delimiter: /
source:
- constants/source_base_path
- filepath
-
plugin: urlencode
uri:
-
plugin: file_copy
source:
- '@source_full_path'
- uri
file_exists: 'use existing'
filemime:
-
plugin: get
Expand Down

0 comments on commit 9696fff

Please sign in to comment.