Menu

#256 Empty archive is created when 0 files / folders are found

open
None
5
2018-05-25
2018-05-25
No

Hi,

There have been a lot of discussions about emptry directories and whether to include them or not, and how to with -r and "." etc.

But i'd like to not create an archive at all if there are no files in the folder i want to compress.

I'm using a simple 7z a -r -sdel dest-arc.7z somefolder*

Any reason why i'd want an empty archive?

If the archive exists i'd also want to not touch it. No timestamp modification.

Hope this makes sense.

Dennis

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.