FIX:(#654) Folder names garbled in Windows due to trailing space

This commit is contained in:
evilhero 2014-03-26 14:04:33 -04:00
parent 4a9af8e19d
commit 7c18aafbf6
1 changed files with 1 additions and 1 deletions

View File

@ -765,7 +765,7 @@ def validateAndCreateDirectory(dir, create=False):
try:
permission = int(mylar.CHMOD_DIR, 8)
os.umask(0) # this is probably redudant, but it doesn't hurt to clear the umask here.
os.makedirs(dir, permission )
os.makedirs(dir.rstrip(), permission )
except OSError:
raise SystemExit('Could not create data directory: ' + mylar.DATA_DIR + '. Exiting....')
return True