[Owncloud] Files Path/Storage use ?

Robin Appelman icewind at owncloud.com
Sun Feb 3 15:00:24 UTC 2013


On Sunday 03 February 2013 10:49:03 Antoine Diamant-Berger wrote:
> I saw that now on the FileSystem/Cache side of  things, paths are stored
> and managed as storage/subPath. Is that going to be generalized, or is it
> only kept internal to core ?
No, it will be kept internal to core.

> Should applications store file paths as storage/subPath pairs too ?
> If so, will the hooks be updated ?
The existing hooks will stay the same, I might add a series of additional 
hooks that work with absolute paths

> if not, perhaps the FileSystem::getFileInfo /searchByMime should  give
> "full" paths instead.
I you need an absolute path you can use.

$view=new \OC\Files\View('');
$view->searchByMime();


\OC\Filesystem will continue to work with paths relative to the users home.

> Cheers,
> 
> TheSFReader



More information about the Owncloud mailing list