change mkdir to makedirs.

Use makedirs to create directory recursively.
This commit is contained in:
Zou Guangxian 2014-03-18 14:37:54 +08:00
parent 5e67246efa
commit 3e3dcecf7f

View file

@ -78,7 +78,7 @@ for i in os.listdir(workingDir):
# walk through them all and move the 'asset' files out and rename, building # walk through them all and move the 'asset' files out and rename, building
# the directory structure listed in the real filenames we found as we go # the directory structure listed in the real filenames we found as we go
os.mkdir(outputDir) os.makedirs(outputDir)
for asset in mapping: for asset in mapping:
path, filename = os.path.split(mapping[asset]) path, filename = os.path.split(mapping[asset])