mirror of
https://github.com/BOSWatch/BW3-Core.git
synced 2026-04-05 22:35:43 +00:00
fix some typos and other
This commit is contained in:
parent
0c7fc84089
commit
6e011301d4
4 changed files with 16 additions and 8 deletions
|
|
@ -29,15 +29,20 @@ BIN_PATH = ROOT_PATH + "/_bin/"
|
|||
TEST_PATH = ROOT_PATH + "/test/"
|
||||
|
||||
|
||||
def createIfNotExist(dirPath):
|
||||
def ifFileExist(filePath):
|
||||
pass
|
||||
|
||||
|
||||
def makeDirIfNotExist(dirPath):
|
||||
"""!Checks if an directory is existing and create it if not
|
||||
|
||||
@param dirPath: Path of the directory
|
||||
@return Path of the directory"""
|
||||
@return Path of the directory or False"""
|
||||
try:
|
||||
if not os.path.exists(dirPath):
|
||||
os.mkdir(dirPath)
|
||||
logging.debug("directory created: %s", dirPath)
|
||||
return dirPath
|
||||
except:
|
||||
logging.exception("error by creating a directory: %s", dirPath)
|
||||
return dirPath
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue