From 3b180240d53564274a9258ff1f851a478bb0b741 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Tue, 9 Jun 2020 08:56:16 -0700 Subject: [PATCH] mkdirs_exists_ok more specific URL detection --- common/file_helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/file_helpers.py b/common/file_helpers.py index d4a00041..c7a70ab8 100644 --- a/common/file_helpers.py +++ b/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)