When importing file entities, check for duplicate files

Created on 29 March 2024, 7 months ago
Updated 23 April 2024, 6 months ago

Problem/Motivation

In #3292287: Extend recipe runner to create content provided in the recipe's /content folder β†’ , we're adding a way to import content provided by a recipe. This is based on parts of the contributed Default Content module.

In review, @alexpott pointed out that, when importing file entities, the associated file is copied into the site's files directory. If there are duplicates, you end up with many copies of the same file. That sorta sucks.

Proposed resolution

Detect if we already have a particular file in the files directory, and don't import it if we do.

πŸ“Œ Task
Status

Fixed

Version

10.3

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States phenaproxima Massachusetts

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024