mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-04 22:07:45 +00:00
little adds and changes
This commit is contained in:
parent
b275abd86f
commit
f64a521bd9
3 changed files with 8 additions and 5 deletions
|
|
@ -32,7 +32,10 @@ def createIfNotExist(dirPath):
|
|||
|
||||
@param dirName: Path of the directory
|
||||
@return Path of the directory"""
|
||||
if not os.path.exists(dirPath):
|
||||
os.mkdir(dirPath)
|
||||
logging.debug("directory created: %s", dirPath)
|
||||
try:
|
||||
if not os.path.exists(dirPath):
|
||||
os.mkdir(dirPath)
|
||||
logging.debug("directory created: %s", dirPath)
|
||||
except:
|
||||
logging.exception("error by creating a directory: %s", dirPath)
|
||||
return dirPath
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue