premiere-libtorrent/list_files.py

20 lines
352 B
Python
Raw Normal View History

#!/bin/python
import os
import sys
def list_directory(path):
tree = os.walk(path)
for i in tree:
dirs = i[0].split('/')
if 'CVS' in dirs: continue
if '.svn' in dirs: continue
for file in i[2]:
if file.startswith('.#'): continue
if file == '.DS_Store': continue
print os.path.join(i[0], file) + ' \\'
list_directory(sys.argv[1])