[owncloud-devel] Sharing API - get path of file in collection

Bjoern Schiessle schiessle at owncloud.com
Thu Jul 31 09:12:14 GMT 2014

On Thu, 31 Jul 2014 10:28:57 +0200 Simeon Ackermann wrote:
> i have problems to get the path of a shared file for user b, shared
> from user a. To identify the file i have its filedid.
> But especially if the file is in a collection (a already shared
> folder) i cant find a solution in the API.
> If the file was directly shared its easy with:
> OCP\Share::getItemSharedWithBySource('file', $itemSource);
> But if the file is in shared folder (or subsub...folder) this
> function doesnt gives me information about the shared path for user b.
> I hope someone has an idea and can help me.

I don't have a direct answer at the moment. But could you give use some
context what you want to achieve? From where do you get the file Id you
want to look up?


Björn Schießle <schiessle at owncloud.com>
Software Developer
ownCloud GmbH - www.owncloud.com

Your Data, Your Cloud, Your Way!

ownCloud GmbH, GF: Markus Rex, Holger Dyroff, Frank Karlitschek
Schloßäckerstrasse 26a, 90443 Nürnberg, HRB 28050 (AG Nürnberg)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20140731/b813c0aa/attachment.sig>

More information about the Devel mailing list