mkdirs_exists_ok more specific URL detection

albatross
Greg Hogan 2020-06-09 08:56:16 -07:00
parent 7bf9b04570
commit 3b180240d5
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ from atomicwrites import AtomicWriter
def mkdirs_exists_ok(path):
if path.startswith('http'):
if path.startswith('http://') or path.startswith('https://'):
raise ValueError('URL path')
try:
os.makedirs(path)