ensure mkdirs_exists_ok is not called for URLs

old-commit-hash: 7bf9b04570
commatwo_master
Greg Hogan 5 years ago
parent 36ee93e0fe
commit 5db2854138
  1. 2
      common/file_helpers.py

@ -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…
Cancel
Save