Skip to content

Commit 69390da

Browse files
committed
upip: _makedirs(): Make compatible with FatFs quirks.
Don't have trailing "/" in paths.
1 parent c06f693 commit 69390da

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

upip/upip.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def _makedirs(name, mode=0o777):
3535
ret = False
3636
s = ""
3737
for c in name.rstrip("/").split("/"):
38-
s += c + "/"
38+
if s:
39+
s += "/"
40+
s += c
3941
try:
4042
os.mkdir(s)
4143
ret = True

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy