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) committed Nov 23, 2016
1 parent a9c7613 commit aad0f3b
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 aad0f3b

Please sign in to comment.