From 3e3dcecf7f2ddaa1eb3945d16e3666bf7c3b3105 Mon Sep 17 00:00:00 2001 From: Zou Guangxian Date: Tue, 18 Mar 2014 14:37:54 +0800 Subject: [PATCH] change mkdir to makedirs. Use makedirs to create directory recursively. --- extractunitypackage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extractunitypackage.py b/extractunitypackage.py index 857b8ee..389fd7e 100755 --- a/extractunitypackage.py +++ b/extractunitypackage.py @@ -78,7 +78,7 @@ for i in os.listdir(workingDir): # 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 -os.mkdir(outputDir) +os.makedirs(outputDir) for asset in mapping: path, filename = os.path.split(mapping[asset])