Skip to content

Resources that are removed leave behind an empty directory #4599

@swirtSJW

Description

@swirtSJW

Current Behavior

As resources are replaced when datasets change versions, if the setting to remove revisions is used, an empty directory is left behind. This leads to significant accumulation of empty resource directories.

settings to remove resource files.

Expected Behavior

If resources are removed, the directory that housed them should be removed as well.

Steps To Reproduce

1 Let site run for several years
2 Observe empty resource directories via

  • SSH in
  • cd sites/default/files/resources
  • See what will be deleted find . -type d -empty -print

Relevant log output (optional)

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions