Single file in archive to delete
Posted: 29 Oct 2023, 02:56
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
Plus possibly
This would speed up deletions when these files can be large 100s MB if not GB
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
Code: Select all
if files in archive = number of files to be deleted
then delete archive