aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2024-03-25 05:19:52 -0500
committerFrederick Muriuki Muriithi2024-09-12 07:40:02 -0500
commitdd888f89e60a986e030ad3d6ebdf081f986e4201 (patch)
treedf65fe7b69e410b674d3d19967aa49dfce2ed704
parent99c92a2bc297673cd559b811db3f9a4fb1c41e20 (diff)
downloadgenenetwork3-dd888f89e60a986e030ad3d6ebdf081f986e4201.tar.gz
assert_paths_exist: make throw_error optional
-rw-r--r--gn3/fs_helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/fs_helpers.py b/gn3/fs_helpers.py
index c2c240c..74e7ada 100644
--- a/gn3/fs_helpers.py
+++ b/gn3/fs_helpers.py
@@ -13,7 +13,7 @@ from typing import List
from typing import ValuesView
from werkzeug.utils import secure_filename
-def assert_paths_exist(paths: ValuesView) -> bool:
+def assert_paths_exist(paths: ValuesView, throw_error: bool = True) -> bool:
"""Given a list of PATHS, throw error if any of them do not exist."""
for path in paths:
if not os.path.isfile(path):