| Reply | « Previous Thread | Next Thread » |
|
I copied the os.listdir() example to dump the list of files, their date and size to e:/filelog.txt for transferring to something with a bigger screen =)
http://www.proweb.co.uk/~matt/s60_file_enum.py |
|
You might also take advantage of the function walk in the standard os.path library which can help you to write recursive file tree browsing code:
>>> def callback(arg, dir, files): ... for file in files: ... print os.path.join(dir, file) ... >>> os.path.walk('c:', callback, None) |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |