Prevent the build from copying hidden files
This commit is contained in:
parent
9251a3b7cc
commit
515afe9656
@ -120,7 +120,10 @@ def CopyTree(dst, src, env):
|
|||||||
for f in os.listdir(src):
|
for f in os.listdir(src):
|
||||||
srcPath = os.path.join(src, f)
|
srcPath = os.path.join(src, f)
|
||||||
dstPath = os.path.join(dst, 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):
|
if not os.path.exists(dstPath):
|
||||||
os.makedirs(dstPath)
|
os.makedirs(dstPath)
|
||||||
DirCopyHelper(srcPath, dstPath)
|
DirCopyHelper(srcPath, dstPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user