Skip to content

Commit

Permalink
[FIX] notice that the path can start without '/' in this case add it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Nemry (ACSONE) authored and marielejeune committed Mar 2, 2023
1 parent 4743a79 commit 7962a45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmis/models/cmis_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def get_folder_by_path(self, path, create_if_not_found=True,
path = repo.getObject(
cmis_parent_objectid).getPaths()[0] + '/' + path
traversed = []
if not path.startswith('/'):
path = '/%s' % path
try:
return repo.getObjectByPath(path)
except ObjectNotFoundException:
Expand Down

0 comments on commit 7962a45

Please sign in to comment.