Code: Select all
import os
import glob
mypath = "/home/Downloads/"
d = {}
def step1():
command = ''.join([mypath, "/**/*.nfo"])
for file in glob.glob(command, recursive=True ):
if os.path.getsize(file) == 0:
return False
else:
return True
print (step1())
Mobile version