Skip to content

Commit

Permalink
PROPFIND: render parent id
Browse files Browse the repository at this point in the history
Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
  • Loading branch information
butonic committed Sep 12, 2022
1 parent 4f6468a commit 8a8d039
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/ocs-share-parent-id.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Enhancement: render file parent id for ocs shares

We brought back the `file_parent` property for ocs shares. The spaces concept makes navigating by path suboptimal. Having a parent id allows navigating without having to look up the full path.

https://github.com/cs3org/reva/pull/3225
Original file line number Diff line number Diff line change
Expand Up @@ -1157,7 +1157,10 @@ func (h *Handler) addFileInfo(ctx context.Context, s *conversions.ShareData, inf
}
}
s.StorageID = storageIDPrefix + s.FileTarget
// TODO FileParent:

if info.ParentId != nil {
s.FileParent = storagespace.FormatResourceID(*info.ParentId)
}
// item type
s.ItemType = conversions.ResourceType(info.GetType()).String()

Expand Down

0 comments on commit 8a8d039

Please sign in to comment.