fixes bug where priorities where lost when force-rechecking.
[libtorrent.git] / list_files.py
blobf4509e87fcc441adbabc5cdef311183a1c63b523
1 #!/bin/python
2 # Copyright Arvid Norberg 2008. Use, modification and distribution is
3 # subject to the Boost Software License, Version 1.0. (See accompanying
4 # file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 import os
7 import sys
9 def list_directory(path):
10 tree = os.walk(path)
11 for i in tree:
12 dirs = i[0].split('/')
13 if 'CVS' in dirs: continue
14 if '.svn' in dirs: continue
16 for file in i[2]:
17 if file.startswith('.#'): continue
18 if file == '.DS_Store': continue
19 print os.path.join(i[0], file) + ' \\'
21 list_directory(sys.argv[1])