ensure mkdirs_exists_ok is not called for URLs
parent
5fdb60d43e
commit
7bf9b04570
|
@ -5,6 +5,8 @@ from atomicwrites import AtomicWriter
|
|||
|
||||
|
||||
def mkdirs_exists_ok(path):
|
||||
if path.startswith('http'):
|
||||
raise ValueError('URL path')
|
||||
try:
|
||||
os.makedirs(path)
|
||||
except OSError:
|
||||
|
|
Loading…
Reference in New Issue