mkdirs_exists_ok more specific URL detection
parent
7bf9b04570
commit
3b180240d5
|
@ -5,7 +5,7 @@ from atomicwrites import AtomicWriter
|
||||||
|
|
||||||
|
|
||||||
def mkdirs_exists_ok(path):
|
def mkdirs_exists_ok(path):
|
||||||
if path.startswith('http'):
|
if path.startswith('http://') or path.startswith('https://'):
|
||||||
raise ValueError('URL path')
|
raise ValueError('URL path')
|
||||||
try:
|
try:
|
||||||
os.makedirs(path)
|
os.makedirs(path)
|
||||||
|
|
Loading…
Reference in New Issue