[owncloud-devel] API function to get data directory

Mathieu Fourcroy mathieu.fourcroy at gmail.com
Thu Apr 21 12:33:50 GMT 2016


Hi,

I am developing some features for owncloud. And I need to get the path of
files for a given user.
Physically, for user "admin" files are in
"/var/www/owncloud/data/admin/files/".

I am building the path with something like:

$path = '/var/www/owncloud/data/' . $user->getDisplayName() . '/files/' .
$fileName;

This is not very portable so my question is, how to get the string
'/var/www/owncloud/data/' using the existing API ?

Thanks in advance for your answers,
Mathieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20160421/a40653d8/attachment.html>


More information about the Devel mailing list