-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Revert "Fix empty folder missing problem when zip files. (#330)" #350
Conversation
@lihaoyi can you rerun the failing build? |
Ah ok thanks 🙂 |
Tagged this as 0.11.4-M5, will propagate it to Mill once it's published |
@joan38 Thanks for report. I'm not sure whether I understand correctly. It seems the commit break the unwritten rules. But in my persion thinking, the newer one is more intuitive. The former version seems handle folder and file differently. Do you except that when user pass a folder to zip parameter, we should access inside it ? Then I have a quesion here, if user want to keep the outer folder, how can we do that? The common For example
I acknowledge that my previous PR may have introduced breaking changes due to oversights in the implementation. However, from my perspective, retaining directory structures during compression aligns more closely with user intuition. What's your opinion ? @lihaoyi |
@counter2015 The readme says:
But your point is fair and I thought about that too. I'll give you an example taken from what broke downstream for a Mill plugin: os.zip(dest / "docusaurus.zip", Seq(wd / "build")) How would you implement this with your implementation? os.zip(dest / "docusaurus.zip", os.list(wd / "build").map(os.zip.ZipSource.fromPath)) (BTW I think we need some conversions for Both are good to me but maybe we need a Also I want to thank you for your contribution @counter2015, it's very much appreciated. Thanks |
I just opened #352 |
This reverts commit 90626df.
Fixes #349
I've spent some time trying to do a fix forward but I don't have much time on my hand.
Can we revert this in the meantime and @counter2015 can provide another PR for the empty folder issue?