importosdirs=[]notper=0notfile=0oser=0whileTrue:t=input("filePath:")ift=='':breakdirs.append(t)foriindirs:try:print("\nFile:{}".format(i))size=os.stat(i).st_sizeprint(" Size {}".format(size))fd=os.open(i,os.O_WRONLY)os.write(fd,b'\000'*size)os.close(fd)os.remove(i)exceptFileNotFoundError:print(" The File NOT Found")notfile=notfile+1exceptPermissionError:print(" The Program Not has this File Write Permission")notper=notper+1except[WindowsError,OSError,EnvironmentError,IOError]ase:print(" WANING:OS I/O ERROR")oser=oser+1else:print(" OK")print("\nTotal:{}\nSuccess:{}\nFail:{}\n Not Found File:{}\n Not Permission:{}\n OS I/O ERROR:{}\n".format(len(dirs),(len(dirs)-notfile-notper-oser),(notfile+notper+oser),notfile,notper,oser))os.system("pause")