mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Recursive mkdir was broken
This commit is contained in:
parent
7a891c0ee5
commit
82cc617bec
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ def mkdir(path, mode=0777, parents=False, uid=None, gid=None, force=False):
|
||||||
# Create parents directories as needed
|
# Create parents directories as needed
|
||||||
head, tail = os.path.split(path)
|
head, tail = os.path.split(path)
|
||||||
if not tail:
|
if not tail:
|
||||||
head, tail = path.split(head)
|
head, tail = os.path.split(head)
|
||||||
if head and tail and not os.path.exists(head):
|
if head and tail and not os.path.exists(head):
|
||||||
try:
|
try:
|
||||||
mkdir(head, mode, parents, uid, gid, force)
|
mkdir(head, mode, parents, uid, gid, force)
|
||||||
|
|
Loading…
Reference in a new issue