mirror of
https://github.com/evilhero/mylar
synced 2025-02-02 12:31:44 +00:00
FIX:(#654) Folder names garbled in Windows due to trailing space
This commit is contained in:
parent
4a9af8e19d
commit
7c18aafbf6
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue