borg list
: error on non-existent path
#8273
Replies: 4 comments 4 replies
-
What borg version(s)? borg list REPO? |
Beta Was this translation helpful? Give feedback.
-
Here's what I did in my Python library to work around this: CyberfusionIO/python3-cyberfusion-borg-support@7b0c0d3 |
Beta Was this translation helpful? Give feedback.
-
Can you add a short reproducer / demo script to your top post that shows the problem? |
Beta Was this translation helpful? Give feedback.
-
IMHO, that's not a bug. If a path pattern matches N pathes and borg output N pathes, it works correctly, including N == 0. |
Beta Was this translation helpful? Give feedback.
-
When listing archive contents with
borg list
, and specifying a non-existent path, the command exits with RC 0. I would expect an error to be raised.MRE:
TBF: whether a path doesn't exist is easy to detect, because Borg simply returns no contents at all. While for an empty path, the path itself is returned.
Beta Was this translation helpful? Give feedback.
All reactions