projects
/
bubblebox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e0e1207
)
host_access: error if the path does not exist
author
Ralf Jung
<post@ralfj.de>
Mon, 22 Apr 2024 06:05:29 +0000
(08:05 +0200)
committer
Ralf Jung
<post@ralfj.de>
Mon, 22 Apr 2024 06:05:29 +0000
(08:05 +0200)
bubblebox.py
patch
|
blob
|
history
diff --git
a/bubblebox.py
b/bubblebox.py
index d7c6cb0b326d4f73212573a91bb06061b4e40d97..a6b9d96d9f19f9d4085ba937de63562607da722f 100644
(file)
--- 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):