mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Fix bug that I just introduced
This commit is contained in:
parent
1793ee49d3
commit
0e8d95c618
@ -1071,10 +1071,11 @@ def CopyFile(dstfile,srcfile):
|
||||
########################################################################
|
||||
|
||||
def CopyAllFiles(dstdir,srcdir,suffix=""):
|
||||
suflen = len(suffix)
|
||||
files = os.listdir(srcdir)
|
||||
for x in files:
|
||||
if (os.path.isfile(srcdir+x)):
|
||||
if x[-len(suffix):] == suffix:
|
||||
if (suflen==0) or (x[-suflen:]==suffix):
|
||||
CopyFile(dstdir+x, srcdir+x)
|
||||
|
||||
########################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user