Re: [owncloud-devel] API function to get data directory

2016-04-21 Thread Robin Appelman
ing those setups into account you'll want to use $userManager = \OC::$server->getUserManager(); $path = $userManager->get($user)->getHome() . '/files/'; Also take into account that not all files are stored locally - Robin Appelman _

Re: [owncloud-devel] scanner and watcher

2015-12-17 Thread Robin Appelman
to quickly detect changes you can try doing your own update mechanism (get changed files and update the cache yourself) and use the login or filesystem setup hooks to trigger it - Robin Appelman ___ Devel mailing list Devel@owncloud.org http://mailman.owncloud.org/mailman/listinfo/devel

Re: [owncloud-devel] issues with documentation + backgrounjobs + app testing

2015-11-19 Thread Robin Appelman
and should be used. https://github.com/owncloud/documentation/issues/1906 provides an example how it should be used - Robin Appelman ___ Devel mailing list Devel@owncloud.org http://mailman.owncloud.org/mailman/listinfo/devel

Re: [owncloud-devel] Design question regarding file path + hash

2015-11-16 Thread Robin Appelman
27;s related data? Yes, because the path field is to long to long to index we index the hash and use that. - Robin Appelman ___ Devel mailing list Devel@owncloud.org http://mailman.owncloud.org/mailman/listinfo/devel

Re: [owncloud-devel] Azure Storage as External Storage

2015-05-21 Thread Robin Appelman
<->oc adapter from https://github.com/owncloud/core/pull/14551 with https://github.com/thephpleague/flysystem-azure - Robin Appelman ___ Devel mailing list Devel@owncloud.org http://mailman.owncloud.org/mailman/listinfo/devel

Re: [owncloud-devel] App: Run unit tests on different database types

2014-10-24 Thread Robin Appelman
ou can create custom phpunit.xml[1] files to load the different configurations [1]: https://gist.github.com/icewind1991/cbf57db50f99e4a2bc36 - Robin Appelman ___ Devel mailing list Devel@owncloud.org http://mailman.owncloud.org/mailman/listinfo/devel

Re: [owncloud-devel] FFMPEG Conversion App

2014-08-22 Thread Robin Appelman
The ideal way would be to have ffmpeg use stdin/stdout and pipe the only and output files using oc's fopen. Using streams should work fine with encryption and give the best performance on external storaged - Robin Appelman -Original Message- From: "Sean Bowen-Williams"

Re: [owncloud-devel] File Preview for New File Type

2014-07-29 Thread Robin Appelman
t; Aaron Additionally, to make ownCloud recognize the mimetype use: `\OC_Helper::getMimetypeDetector()->registerType( 'dicom', 'application/dicom' )` Note that this only has effect on files created after the mimetype is registered - Robin Appelman

Re: [owncloud-devel] File System Usage Calculation

2014-04-24 Thread Robin Appelman
34592 AS size FROM oc_filecache JOIN oc_storages ON oc_filecache.storage = oc_storages.numeric_id WHERE name = 'files' GROUP BY storage - Robin Appelman ___ Devel mailing list Devel@owncloud.org http://mailman.owncloud.org/mailman/listinfo/devel