diff --git a/src/modules/unpackfs/main.py b/src/modules/unpackfs/main.py index 343ca8235..c1e1a7ec2 100644 --- a/src/modules/unpackfs/main.py +++ b/src/modules/unpackfs/main.py @@ -221,7 +221,7 @@ def run(): destination = os.path.abspath(root_mount_point + entry["destination"]) - if not os.path.isfile(source): + if not os.path.exists(source) or os.path.isdir(source): return ("Bad source", "source=\"{}\"".format(source)) if not os.path.isdir(destination): return ("Bad destination",