problem with running os.path.walk()
MalC0de
malc0de.encrypt at gmail.com
Tue Oct 13 15:32:07 EDT 2009
heya there,
where's the problem with the following code ? I couldn't see any
result while running as a script :
#!/usr/bin/python
import time
import os
def walker2(arg,dirname,filenames):
cutoff = time.time() - (arg * 24 * 60 * 60)
for filename in filenames :
stats = os.stat(dirname + os.sep + filename)
modified = stats[8]
if modified >= cutoff :
print dirname + os.sep + filename
os.path.walk('C:\\windows\\system',walker2,30)
if I have problem with it then let me know and if is possible please
fix it up .
thnx .
More information about the Python-list
mailing list