Merge branch 'master' of bitbucket.org:mashtizadeh/castor

This commit is contained in:
Ali Mashtizadeh 2015-01-30 18:41:59 -08:00
commit cfee2dd1e8

View File

@ -120,7 +120,10 @@ def CopyTree(dst, src, env):
for f in os.listdir(src):
srcPath = os.path.join(src, f)
dstPath = os.path.join(dst, f)
if os.path.isdir(srcPath):
if f.startswith("."):
# Ignore hidden files
pass
elif os.path.isdir(srcPath):
if not os.path.exists(dstPath):
os.makedirs(dstPath)
DirCopyHelper(srcPath, dstPath)