As I am trying to create a zip of a directory with multiple sub folders and I want to provide it for users to download. But i am unable to do that. Can anyone help me out how to zip a directory in spaces. I can easily do it from my local storage.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
There have been similar questions asked in the community as well, here is one that I found a few days back:
This could be useful as well as the link provided you earlier by Rexford Nkansah.
From my understanding, that’s not a trivial task to do, since on spaces, the files or objects with paths, and not necessarily directories.
You can find more info on the potential workarounds in this answer: https://stackoverflow.com/questions/16368119/zip-an-entire-directory-on-s3
Want to learn more? Join the DigitalOcean Community!
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Sign up now