aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/Root.php
Commit message (Collapse)AuthorAgeFilesLines
* fix: Catch old cached paths and fetch the new onefix/cache-hit-getFirstNodeByIdJulius Knorr2025-04-081-5/+9
| | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* fix: Proper order for checking path prefix for getting file by id from cacheJulius Knorr2025-04-071-1/+1
| | | | Signed-off-by: Julius Knorr <jus@bitgrid.net>
* fix: fix getNodeFromCacheEntryAndMount using relative pathRobin Appelman2025-03-101-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* docs: Folder.get throws a NotPermittedException exceptionDaniel Kesselberg2024-09-301-6/+0
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(Files): Handle getOwner() returning falsefix/storage/get-owner-falseprovokateurin2024-09-171-2/+17
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-29/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* perf: cache path by id to speedup getting nodes by idRobin Appelman2024-03-041-2/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add interface to get only a single node by id instead of all nodes for ↵Robin Appelman2024-03-041-0/+4
| | | | | | | | the id this should be enough in most(?) cases and makes efficient implementation and caching easier Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: rename users to account or personVincent Petry2024-02-131-1/+1
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-1/+1
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* add method to create a node from cache entry + mountpointRobin Appelman2023-09-191-0/+26
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor: declare getMount() and getMountsIn() at IRootFolderArthur Schiwon2023-06-211-6/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: ugly type jugglingArthur Schiwon2023-06-211-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* optimize LazyUserFolder::getMountPointRobin Appelman2023-02-131-1/+1
| | | | | | no need to do a full setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* only fetch the data for mounts inside a folder when neededRobin Appelman2023-02-091-2/+2
| | | | | | | | for most operations we don't actually care about any mounts inside a folder, only for metadata that needs to propagate across storage boundaries (size, etag, mtime) do we need all the submount info. By only loading this data when needed we can save a bunch of storage setup in a number of cases Signed-off-by: Robin Appelman <robin@icewind.nl>
* Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* log stacktrace for 'Backends provided no user object'Arthur Schiwon2022-04-201-1/+3
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* perform a setup if we can't find any mounts containing a fileRobin Appelman2022-04-111-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize getById on LazyUserFolder to not require a full fs setupRobin Appelman2022-04-041-2/+81
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* split out some path manipulation logicRobin Appelman2022-04-041-0/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #31609 from nextcloud/fix/migrate-away-from-iloggerCôme Chilliet2022-03-291-6/+3
|\ | | | | Migrate from ILogger to LoggerInterface in lib/private
| * Migrate from ILogger to LoggerInterface in lib/privateCôme Chilliet2022-03-241-6/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | caching of userfolderRobin Appelman2022-03-241-4/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fmtRobin Appelman2022-03-241-1/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | improve lazy UserFolderRobin Appelman2022-03-241-6/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | return a lazy folder from Root::getUserFolderRobin Appelman2022-03-241-9/+13
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* type fixesRobin Appelman2022-03-041-5/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust tests to new fs setupRobin Appelman2022-03-041-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move teardown logic to SetupManagerRobin Appelman2022-03-041-25/+25
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-231-6/+7
| | | | | | this enabled more fine grained filesystem setup 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>
* fix return value of Root::getRobin Appelman2021-03-261-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Properly hint exceptions thrown by getUserFolderJulius Härtl2020-04-031-2/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-2/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Some php-cs fixesRoeland Jago Douma2019-11-221-2/+2
| | | | | | | | | | | * 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>
* add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-271-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix string doc type casingChristoph Wurst2018-11-151-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersMorris Jobke2017-11-061-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Introduce an event for first time login based on the last login time stampThomas Müller2016-11-141-1/+0
| | | | | | | | | | | | Use firstLogin event to trigger creation of default calendar and default address book Delay login of admin user after setup so that firstLogin event can properly be processed for the admin Fixing tests ... Skeleton files are not copied over -> only 3 cache entries are remaining Use updateLastLoginTimestamp to properly setup lastLogin value for a test user
* DI for root.phpLukas Reschke2016-11-021-21/+33
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Do not expose user data in exceptions & fix typoMorris Jobke2016-11-021-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add using casing check/fix for initMountPointsVincent Petry2016-11-021-0/+9
|
* optimize Folder::getById to use less queriesRobin Appelman2016-10-121-1/+13
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>