2007-11-18 17:00:15 +00:00
|
|
|
#!/bin/python
|
2008-07-01 18:59:13 +00:00
|
|
|
# Copyright Arvid Norberg 2008. Use, modification and distribution is
|
|
|
|
# subject to the Boost Software License, Version 1.0. (See accompanying
|
|
|
|
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
2007-11-18 17:00:15 +00:00
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
def list_directory(path):
|
|
|
|
tree = os.walk(path)
|
|
|
|
for i in tree:
|
2008-06-19 12:42:45 +00:00
|
|
|
dirs = i[0].split('/')
|
|
|
|
if 'CVS' in dirs: continue
|
|
|
|
if '.svn' in dirs: continue
|
2007-11-18 17:00:15 +00:00
|
|
|
|
|
|
|
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])
|
|
|
|
|