Replies: 2 comments 1 reply
-
you can use |
Beta Was this translation helpful? Give feedback.
1 reply
-
I don't think there's a way to get files + empty directories with one $ fd -p -g "$PWD/packages/*/dist" -X tar --zstd -cf my.tar.zst {} or $ fd -p -g "$PWD/packages/*/dist/**/*" -X tar --no-recursion --zstd -cf my.tar.zst {} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to zip and passing both directory and files makes the archive bad.
fd -p -g "$PWD/packages/*/dist/**/*" -X tar --zstd -cf my.tar.zst {}
The problem by doing so is that tar will append the files twice because I pass both file and directory.
Current behaviour
Wanted behaviour
Beta Was this translation helpful? Give feedback.
All reactions