目前,我有这个目录结构:
/Downloads
/Download 1/
/Download 2/
/Download 3/
...
Run Code Online (Sandbox Code Playgroud)
我想要这个目录结构:
/Downloads
Download 1.zip
Download 2.zip
Download 3.zip
...
Run Code Online (Sandbox Code Playgroud)
Essentially, I want to zip Download 1 into Download 1.zip and then remove Download 1.
What would be the fastest/easiest way to achieve this? I'm running Ubuntu 12.04.
The reason I'm asking is because this folder is shared on my local network. When people ask this on my Apache Web Server, I want them to download Download 1, so I need …