Organize leaves empty parent directories behind

Bug #1621980 reported by Kyle Fazzari
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snapcraft
Triaged
Low
Unassigned

Bug Description

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.

Kyle Fazzari (kyrofa)
description: updated
Changed in snapcraft:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.