|
Here is some code that you can run from a syntax window to search your entire disk for zero size zip or spe files. It searches from c:\ on down but not any network mounts. On Mac, you would need to remove the c: part of the filespecs in both places where they occur.
Be sure to preserve the indentations.
This may take some time to run, so be patient.
begin program python3.
import glob, os, itertools
for f in itertools.chain(glob.iglob(r"c:/**/*.spe", recursive=True), glob.iglob(r"c:/**/*.zip", recursive=True)):
st = os.stat(f)
if st.st_size == 0:
print(f"empty: {f}")
print("done")
end program.
|