← Back to issue list

Organize leaves empty parent directories behind

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1621980
Type
issue
State
open
Author
~kyrofa
Labels
Created
Updated
Closed

Current evaluation

Snapcraft's organize keyword leaves empty parent directories in the snap after moving files, requiring manual stage/snap filtering. Filed by a maintainer in 2015 with a clear reproduction; 0 comments, no labels, no maintainer response in 10 years.

Suggested action: needs triage

Reason: The issue has zero comments, no labels, and no maintainer response in 10 years, showing it was never triaged. The organize code has been refactored multiple times since 2015 (moved to craft-parts), so it needs a maintainer to verify whether the empty-directory behavior still reproduces before deciding to fix or close.

Impact: 25 Quick Win: 15.0 Staleness: 95 Complexity: 40 Confidence: 50 Support Request: 10

Issue body

Say I have the following layout: src/foo/configs/my.conf src/foo/scripts/start-my-thing And my YAML: # [...] parts:     my-part:         plugin: dump         source: src/foo         organize:             configs/my.conf: my-conf-dir/my.conf             scripts/start-my-thing: bin/start-my-thing As things are now, the snap will contain an empty `configs` directory as well as an empty `scripts` directory, which need to be filtered out via the `stage`/`snap` keywords. This is probably something that can be fixed in the organize code (removing empty parent directories) instead of expecting the user to track it.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 25
Quick Win: 15.0
Staleness: 95
Complexity: 40
Confidence: 50
Support Request: 10
needs triage Snapcraft's organize keyword leaves empty parent directories in the snap after moving files, requiring manual stage/snap filtering. Filed by a maintainer in 2015 with a clear reproduction; 0 comments, no labels, no maintainer response in 10 years.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 20
Confidence: 90
Support Request: 10
close stale Snapcraft's organize directive leaves empty parent directories after moving files, requiring manual stage/snap filtering. Issue is over 9 years old with no maintainer response or labels.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 25
Confidence: 85
Support Request: 10
close stale The organize directive leaves empty parent directories after moving files, requiring manual stage/snap filtering. The report is nearly 10 years old with no maintainer labels or comments.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 25
Confidence: 85
Support Request: 15
close stale The organize directive leaves empty parent directories after moving files, requiring manual filtering. The issue is nearly a decade old with no maintainer interaction or labels.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 30
Confidence: 65
Support Request: 10
needs triage The organize directive leaves empty parent directories after moving files. Suggests auto-removing them in the organize code. Currently open, unassigned, and inactive for over nine years.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1599709 organize feature deletes destination folder, is surprising snapcraft (launchpad) closed Reported that snapcraft's organize feature deletes destination directories before moving files. Closed with zero comments, indicating the issue was abandoned without a fix or resolution.
70%