Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User maht0x0r's Avatar
    Join Date
    Jan 2005
    Posts
    9
    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

  2. #2
    Registered User jeclarim's Avatar
    Join Date
    Jan 2005
    Posts
    7
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved