Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Locked thread
BlackMK4
Aug 23, 2006

wat.
Megamarm
Something like this?

code:
import os
import sys


def listfiles(start):
    for dirname, dirnames, filenames in os.walk(start):
        directory = ''
        for filename in filenames:
            if filename is 'thumbs.db':
                continue
            directory += filename + ';'
        directory = directory.rstrip(';')
        print directory


def main():
    try:
        listfiles(sys.argv[1])
    except IndexError:
        print 'usage: python listfile.py C:\path\\to\\folder'


if __name__ == '__main__':
    main()
Install Python 2.7, create a file named listfile.py with the contents of the code block above, open a terminal, drag the python file to it (the path to the file will auto complete) and then drag the parent folder.

ex: C:\PythonFolder\listfiles.py C:\path\to\directory

Adbot
ADBOT LOVES YOU

  • Locked thread