mkdirs_exists_ok more specific URL detection

pull/1671/head
Greg Hogan 5 years ago
parent 7bf9b04570
commit 3b180240d5
  1. 2
      common/file_helpers.py

@ -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)

Loading…
Cancel
Save