Skip to content
Snippets Groups Projects
Commit 34f75e0c authored by Romin's avatar Romin :eye:
Browse files

Fix file path argument acting as prefix

parent 269004e2
Branches
Tags
No related merge requests found
......@@ -817,7 +817,12 @@ class Resource:
for item in self.client.get(uri, params={"Path": path}).data
]
if len(files) > 1:
raise TooManyResults
# path argument acts as prefix, may yield more than 1 result
# Only return exact matches!
for f in files:
if f.path == path:
return f
raise NotFoundError
if len(files) == 0:
raise NotFoundError
return files[0]
......
  • Romin :eye: @romin.benfer

    mentioned in issue #96

    ·

    mentioned in issue #96

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment