From 7bf9b04570b0eea77de33181a58134ec8ddb4b19 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Mon, 8 Jun 2020 19:29:33 -0700 Subject: [PATCH] ensure mkdirs_exists_ok is not called for URLs --- common/file_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/file_helpers.py b/common/file_helpers.py index c33ebac6..d4a00041 100644 --- a/common/file_helpers.py +++ b/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: