Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Add include-parent-in-path parameter #345

Open
forsyth2 opened this issue Aug 12, 2024 · 0 comments
Open

[Feature]: Add include-parent-in-path parameter #345

forsyth2 opened this issue Aug 12, 2024 · 0 comments

Comments

@forsyth2
Copy link
Collaborator

How will this affect the next version number?

New feature (increment MINOR version)

Is your feature request related to a problem?

@TonyB9000 ran into this issue: if someone were to “zstash extract” any two archives in the same PWD, the extracted files would clobber one another – because while they are distinguished by archive-NAME, they are not distinguished by archive-PATH within the archive.

Describe the solution you'd like

@TonyB9000's suggestion: a special zstash flag “—include-parent-in-path”, so that if hist-BCRC were the target directory, the archived file paths would begin with that value (especially if “—cache ” is supplied). That would require zstash to “cd” up one directory and prefix the target basename to every supplied pattern.

Describe alternatives you've considered

No response

Additional context

No response

@forsyth2 forsyth2 changed the title [Feature]: [Feature]: Add include-parent-in-path parameter Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant