Skip to content
d6_file.yml 1.47 KiB
Newer Older
# Every migration that references a file by Drupal 6 fid should specify this
# migration as an optional dependency.
    # The tool configuring this migration must set source_base_path. It
    # represents the fully qualified path relative to which URIs in the files
    # table are specified, and must end with a /. See source_full_path
    # configuration in this migration's process pipeline as an example.
    source_base_path: ''
    # If you are using both this migration and d6_user_picture_file in a custom
    # migration and executing migrations incrementally, it is strongly
    # recommended that you remove the fid mapping to avoid potential ID
    # conflicts. For that reason, this mapping is commented out by default.
    # fid: fid
  source_full_path:
    -
      plugin: concat
      delimiter: /
      source:
        - constants/source_base_path
        - filepath
    -
      plugin: urlencode
  destination_full_path:
    plugin: file_uri
    source:
      - filepath
      - file_directory_path
  uri:
    plugin: file_copy
    source:
      - '@source_full_path'
      - '@destination_full_path'
  # No need to migrate filesize, it is computed when file entities are saved.
  # filesize: filesize