aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/LazyRoot.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-241-19/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: LazyRoot missing methodMarcel Klehr2024-05-141-0/+4
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat: add interface to get only a single node by id instead of all nodes for ↵Robin Appelman2024-03-041-0/+5
| | | | | | | | the id this should be enough in most(?) cases and makes efficient implementation and caching easier Signed-off-by: Robin Appelman <robin@icewind.nl>
* add method to create a node from cache entry + mountpointRobin Appelman2023-09-191-0/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* make LazyFolder::get not load the real folder if we know the pathRobin Appelman2023-09-041-3/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize getById on LazyUserFolder to not require a full fs setupRobin Appelman2022-04-041-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-1/+0
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* generalize the "lazy folder" conceptRobin Appelman2020-05-111-456/+1
| | | | | | makes it easy to use lazy intialized folder in other places Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Create SimpleFile only when writing the contentRobin Appelman2020-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | instead of first creating an empty file and then writing the content. This solves the overhead of creating an empty file with the common pattern: ```php $file = $simpleFilder->newFile('foo.txt'); $file->putContent('bar.txt'); ``` roughly halving the number of storage and database operations that need to be done when creating a `SimpleFile`. This is not automatically done with `File` because that has a more complex api which I'm more hesitant to touch. Instead the `Folder::newFile` api has been extended to accept the content for the new file. In my local testing, the overhead of first creating an empty file took about 20% of the time for preview generation Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersChristoph Wurst2019-12-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-0/+1
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont expose metadata etag for nowRobin Appelman2019-11-131-7/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose filecache extension data in FileInfoRobin Appelman2019-11-131-0/+21
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-271-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add getExtension() to FileInfoRobin Appelman2018-10-291-0/+4
| | | | | | | this is a fairly common operation so it makes sense to prevent having to repeatedly implement it. Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-221-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Always use the LazyRootRoeland Jago Douma2016-08-261-1/+1
|
* use limit instead of since when listing recent filesRobin Appelman2016-07-221-1/+1
|
* add recent files to node apiRobin Appelman2016-07-221-1/+6
|
* Fix othersJoas Schilling2016-07-211-2/+3
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+474