[owncloud-devel] Mapping file ids to FileInfo/storage

Vincent Petry pvince81 at owncloud.com
Thu Nov 27 17:56:22 GMT 2014


Hello,

I'm working on the tags/favorites app here
https://github.com/owncloud/metadata/pull/2 and was wondering how I can
efficiently map file ids to FileInfo.

I noticed that the search_lucene app also only indexes file ids, but yet
it returns the correct file paths, even for shared folders.

Is there an efficient way to resolve FileInfo from fileid ? (I didn't
find that part in the search_lucene app)

This here
https://github.com/owncloud/metadata/commit/3b864a1f2ab7d2e38bb1a485abc2f29310d711d3#diff-19747901543244a55807cbd25aac2737R71
is definitely the WRONG way.

Thanks,

Vincent




More information about the Devel mailing list