19 lines
363 B
Python
Executable File
19 lines
363 B
Python
Executable File
#!/bin/python
|
|
|
|
import os
|
|
import sys
|
|
|
|
def list_directory(path):
|
|
tree = os.walk(path)
|
|
for i in tree:
|
|
if os.path.split(i[0])[1] == 'CVS': continue
|
|
if os.path.split(i[0])[1] == '.svn': 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])
|
|
|