ouch icon indicating copy to clipboard operation
ouch copied to clipboard

Remove constraint for compressing the root directory

Open marcospb19 opened this issue 3 years ago • 0 comments

Ouch emits an error when the user tries to compress the root directory.

This used to make sense when compressing was all done in-memory, however, it's been a long time since we do stream based compression, so compressing the root directory does not exhaust memory anymore (possible with .zip.gz, but we already have a warning and ask a question for that at runtime).

Now is just a problem of our implementation details:

- we cd into a parent dir before compressing a folder, but root directories do not have parent dir - function impl for reference

marcospb19 avatar Oct 15 '22 16:10 marcospb19