How to create zip of a directory in spaces?

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.

Submit an answer
Answer a question...

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!

Sign In or Sign Up to Answer

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.

Site Moderator
Site Moderator badge
October 21, 2022

Hi @mohamamdashraf-ali,

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.

Hi Mohamamd,

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:

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.