Single file in archive to delete

English support for the software AllDup
Post Reply
Voltaire
Posts: 2
Joined: 29 Dec 2021, 21:21

Single file in archive to delete

Post by Voltaire »

I'm doing some clean ups of files and I've found

Some of my files are archives, archives which contain a single file

If I do a search on a byte-by-byte basis including inside these archives and they match to another file, I select them for deleting

If appears that rather than directly deleting the archive file the file is extracted before being deleted

Could some code be added that checks

Code: Select all

if files in archive = 1 
then delete archive
Plus possibly

Code: Select all

if files in archive = number of files to be deleted 
then delete archive
This would speed up deletions when these files can be large 100s MB if not GB
Administrator
Site Admin
Posts: 4047
Joined: 04 Oct 2004, 18:38
Location: Thailand
Contact:

Re: Single file in archive to delete

Post by Administrator »

AllDup documentation:

"If you delete files from archives and the file to be deleted is the only file in the archive, then the archive file is always deleted."
Post Reply