Description
When running partup package with a full path to a file, the directories to that file are stripped. However, it is expected for the relative path to be preserved.
The following example shows the directory foo/ being (falsely) stripped:
$ partup package test.partup layout.yaml foo/bar.txt
$ sudo partup show test.partup
...
Package Contents
================
bar.txt
layout.yaml
When passing a directory as input, the output is as expected:
$ partup package test.partup layout.yaml foo/
$ sudo partup show test.partup
...
Package Contents
================
foo/
foo/bar.txt
layout.yaml
Expected behavior
When passing relative path including directories, these directories should be preserved/passed through to the package content.
Description
When running
partup packagewith a full path to a file, the directories to that file are stripped. However, it is expected for the relative path to be preserved.The following example shows the directory
foo/being (falsely) stripped:When passing a directory as input, the output is as expected:
Expected behavior
When passing relative path including directories, these directories should be preserved/passed through to the package content.