Export assets as separate files instead of one zip file

Created on 12 February 2025, 2 months ago

Problem/Motivation

I want to keep all the content, that should be deployable by code, in the git repo, together with assets (attached images and other files).

For this, we have a drush command like this:
drush content:export node /relative/output/path --entities="d8502131-009d-49a0-9294-e0eaf4df2d5c" --assets
But the problem is that it generates a zip file, even if I export a single entity.

Steps to reproduce

1. Export a node with attachments expecting to have assets as separate files using a command like
drush content:export node /relative/output/path --entities="d8502131-009d-49a0-9294-e0eaf4df2d5c" --assets

2. Get a single zip file instead.

Proposed resolution

Would be good to create the zip file only if we have it explicitly enabled by an option like --zip, and by default - write to separate files in the "assets" directory.

Or, to not break the previous behavior - add something like --disable-zip then.

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

1.4

Component

Code

Created by

🇦🇲Armenia murz Yerevan, Armenia

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