- 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
|
#
¿
May 26, 2015 04:42
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
Apr 19, 2024 08:44
|
|