X-Git-Url: https://git.ralfj.de/bubblebox.git/blobdiff_plain/1a71f2b54e8248af43e8d82a3c009a35a1d8f1aa..refs/heads/master:/bubblebox.py diff --git a/bubblebox.py b/bubblebox.py index d7c6cb0..a6b9d96 100644 --- a/bubblebox.py +++ b/bubblebox.py @@ -144,7 +144,10 @@ def host_access(dirs): path = path.replace("//", "/") path = path.removesuffix("/.") # glob expansion - yield from glob.glob(path) + globbed = glob.glob(path) + if len(globbed) == 0: + raise Exception(f"Path does not exist: {path}") + yield from globbed def recursive_host_access(root, dirs, out): for names, desc in dirs.items(): for path in expand(root, names):