Zip error: nothing to do!

Zip error: nothing to do!

When you encounter the error message “Zip error: nothing to do!”, it means that the zip command you used does not have any files or directories to process. The zip command is typically used to create a compressed archive file from one or multiple files or folders.

Here is an example to clarify the usage of the zip command:

$ ls
file1.txt file2.txt folder1 folder2

$ zip archive.zip file1.txt file2.txt folder1 folder2
  adding: file1.txt (stored 0%)
  adding: file2.txt (stored 0%)
  adding: folder1/ (stored 0%)
  adding: folder2/ (stored 0%)

$ zip empty.zip
  zip error: nothing to do!

In the example above, the first zip command successfully creates an archive file called “archive.zip” containing the specified files and folders. However, the second zip command fails with the “Zip error: nothing to do!” message because it does not have any files or folders specified for compression.

To resolve the issue, you need to ensure that you provide the correct files and folders as arguments to the zip command. Make sure you are in the correct directory and verify that the files and folders you want to include in the zip archive actually exist.

Related Post

Leave a comment