files = glob.iglob(os.path.join("/tmp", "*fil*"))
for file in files:
if os.path.isfile(file):
print file,
python print only files by patern
Leave a reply
files = glob.iglob(os.path.join("/tmp", "*fil*"))
for file in files:
if os.path.isfile(file):
print file,