summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Update Folder.phpPaweł Bogusławski2022-07-291-0/+1
| | | | | | | | | | | | Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
| * | Update Folder.phpPaweł Bogusławski2022-07-291-1/+0
| | | | | | | | | | | | Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
| * | Update lib/private/Files/Node/Folder.phpPaweł Bogusławski2022-07-291-1/+1
| | | | | | | | | | | | | | | Co-authored-by: Vincent Petry <vincent@nextcloud.com> Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
| * | Paths added to messages and message cleanupPawel Boguslawski2022-07-291-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This mod adds path to error messages. Without it it's difficult for example to find what path causes permission problems. Related: https://help.nextcloud.com/t/ocp-files-notpermittedexception-could-not-create-folder/133818 Related: https://help.nextcloud.com/t/could-not-create-folder-false-error/65962/ Author-Change-Id: IB#1121253 Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl>
* | | optimize LazyUserFolder::getMountPointRobin Appelman2023-02-132-3/+17
| | | | | | | | | | | | | | | | | | 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-094-32/+38
| | | | | | | | | | | | | | | | | | | | | | | | 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-075-7/+7
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Merge pull request #34994 from Glandos/fileinfo_perfSimon L2022-11-111-3/+3
|\ \ \ | | | | | | | | [Performance] Test valid path only if file info has to be retrieved
| * | | Test valid path only if file info has to be retrievedGlandos2022-11-061-3/+3
| | | | | | | | | | | | | | | | Signed-off-by: Glandos <bugs-github@antipoul.fr>
* | | | Make sure that path is normalized and then checked,Côme Chilliet2022-11-101-7/+8
|/ / / | | | | | | | | | | | | | | | and not the other way around Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | / Filter out old files when trying to get recent filesCarl Schwan2022-09-051-27/+55
| |/ |/| | | | | | | | | | | Only do so when asking for less than 100 files and having an offset equal to 0. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | remove leading slash for search results at mountpoint rootRobin Appelman2022-08-291-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Only pass parent if paths matchJulius Härtl2022-08-241-3/+5
| | | | | | | | | | | | | | As the user folder might be initialized by the root from two levels down the hierarchy, passing this as a parent only works if the path matches Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Avoid extra query for the parent node if we can pass it alongJulius Härtl2022-08-242-9/+20
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix typos in lib/private subdirectoryluz paz2022-07-272-2/+2
| | | | | | | | | | | | 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>
* | Fix PHP 8.2 warnings about undeclared propertiesCôme Chilliet2022-06-212-2/+0
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>
* more preset metadata for LazyUserFolderRobin Appelman2022-04-082-0/+14
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow reusing known folder info when getting directory contentsRobin Appelman2022-04-061-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* rename cached fileinfo on renameRobin Appelman2022-04-041-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont needlessly resolve path when getting internalPath/storage from NodeRobin Appelman2022-04-041-7/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize getById on LazyUserFolder to not require a full fs setupRobin Appelman2022-04-045-81/+109
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* split out some path manipulation logicRobin Appelman2022-04-043-28/+6
| | | | 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-242-5/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | improve lazy UserFolderRobin Appelman2022-03-242-6/+69
| | | | | | | | 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>
* | allow setting some metadata in the lazyfolder without having to get the real ↵Robin Appelman2022-03-241-1/+24
|/ | | | | | folder 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-232-7/+8
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix Folder->getById() when a single storage is mounted multiple timesRobin Appelman2021-07-281-15/+29
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont include folder being search in in the resultsRobin Appelman2021-07-021-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update tests and fix some edge cases around new searchRobin Appelman2021-06-141-5/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* some cleanup and documentationRobin Appelman2021-06-141-25/+16
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perform file search in a single queryRobin Appelman2021-06-141-51/+20
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-049-10/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* adjust testsRobin Appelman2021-04-211-1/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* use search query for Folder::getRecentRobin Appelman2021-04-211-160/+36
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fail when creating new files with an empty pathJulius Härtl2021-04-201-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #26219 from nextcloud/relative-path-nullRoeland Jago Douma2021-03-301-2/+2
|\ | | | | getRelativePath can return null
| * getStorage can also return nullRobin Appelman2021-03-241-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * getRelativePath can return nullRobin Appelman2021-03-241-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix return value of Root::getRobin Appelman2021-03-261-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle ordering in folder searchRobin Appelman2021-03-191-35/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>