2010-03-05 19:12:23 +01:00
|
|
|
#! /usr/bin/env python
|
2008-07-01 20:59:13 +02: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 18:00:15 +01:00
|
|
|
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
|
|
|
|
def list_directory(path):
|
|
|
|
tree = os.walk(path)
|
|
|
|
for i in tree:
|
2008-06-19 14:42:45 +02:00
|
|
|
dirs = i[0].split('/')
|
|
|
|
if 'CVS' in dirs: continue
|
|
|
|
if '.svn' in dirs: continue
|
2007-11-18 18:00:15 +01: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])
|
|
|
|
|