mirror of https://github.com/commaai/openpilot.git
mkdirs_exists_ok more specific URL detection
old-commit-hash: 3b180240d5
This commit is contained in:
parent
5db2854138
commit
02d68d91fb
|
@ -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…
Reference in New Issue