aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* perf: Avoid updating the folder size if we know the size differenceJulius Härtl2024-04-092-15/+19
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: use proper jailed patch in watcherRobin Appelman2024-04-092-4/+76
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #44508 from nextcloud/backport/39367/stable27Robin Appelman2024-04-031-1/+3
|\ | | | | [stable27] handle more exceptions in AmazonS3::fopen
| * fix SeekableHttpStream::stream_stat errors on failed openRobin Appelman2024-03-271-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | feat(files)): Add retry logic to cover deadlock situations when moving many ↵Louis Chemineau2024-03-281-6/+25
|/ | | | | | files Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: log error when default getWrapperStorage would return nullRobin Appelman2024-03-221-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: add some recrusive detection/preventionRobin Appelman2024-03-191-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: ensure nested mount points are handled in the correct orderRobin Appelman2024-03-181-0/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: avoid scanning a non existing directoryBenjamin Gaussorgues2024-03-141-1/+5
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Refactoring getName functionhopleus2024-03-141-5/+3
| | | | Signed-off-by: hopleus <hopleus@gmail.com>
* Fixes for getting the file name in the cases when the file name key is ↵hopleus2024-03-141-1/+5
| | | | | | received, but it is empty Signed-off-by: hopleus <hopleus@gmail.com>
* fix: Throw instead of yielding nothing when listing local directoriesJulius Härtl2024-02-261-0/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #43246 from nextcloud/backport/41327/stable27Benjamin Gaussorgues2024-02-092-8/+32
|\
| * also updated parent etags when a changed etag is detected during scanningRobin Appelman2024-01-312-7/+30
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * dont reuse etag for folders marked explicitly unscannedRobin Appelman2024-01-311-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #43390 from nextcloud/backport/43131/stable27Git'Fellow2024-02-091-1/+1
|\ \ | | | | | | [stable27] fix(files): Don't attempt to format a partial cache entry
| * | fix(files): Don't attempt to format a partial cache entryChristoph Wurst2024-02-061-1/+1
| |/ | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* / continue background scanning different storages if one failsRobin Appelman2024-02-071-23/+27
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: reduce memory consumption of scansGit'Fellow2024-01-161-3/+6
| | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix lint Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(s3): Add config option to disable multipart copy for certain s3 providersJulius Härtl2023-12-292-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* only do a multipart s3 copy when above the regular copy limitRobin Appelman2023-12-292-11/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* setup filesystem wrappers before we mark the root as setupRobin Appelman2023-12-051-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add more checks to ensure mounts aren't emptyRobin Appelman2023-12-052-1/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(TemplateManager): Bail early if templatedirectory is emptyMarcel Klehr2023-12-041-0/+5
| | | | | | fixes #39266 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Merge pull request #41462 from nextcloud/backport/40996/stable27Arthur Schiwon2023-11-281-1/+1
|\ | | | | [stable27] reuse sharing disabled state when listing folder content
| * reuse sharing disabled state when listing folder contentRobin Appelman2023-11-141-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize UserMountCache::registerStorageRobin Appelman2023-11-163-57/+61
| | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Merge pull request #41502 from nextcloud/backport/40935/stable27Benjamin Gaussorgues2023-11-161-2/+31
|\ \ | | | | | | [stable27] add some support for rename on case insensitive local filesystems
| * | add some support for rename on case insensitive local filesystemsRobin Appelman2023-11-151-2/+31
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #41363 from nextcloud/optmize-storage-wrappers-27Benjamin Gaussorgues2023-11-165-39/+73
|\ \ | | | | | | [27] optimize builtin storage wrappers
| * | optimize isShared and isMountedRobin Appelman2023-11-091-18/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | optimize builtin storage wrappersRobin Appelman2023-11-094-21/+68
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* / fix(s3): support SSE-C headers for the MultipartCopy callTobias Zimmerer2023-11-151-1/+7
|/ | | | Signed-off-by: Tobias Zimmerer <3228193+ir0nhide@users.noreply.github.com>
* optimize cache jail creationRobin Appelman2023-11-072-6/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-262-1/+20
| | | | Signed-off-by: Jonas <jonas@freesources.org>
* Merge pull request #40569 from nextcloud/backport/40499/stable27Arthur Schiwon2023-10-111-0/+142
|\ | | | | [stable27] add wrapper for external storage to ensure we don't get an mtime that is lower than we know it is
| * add wrapper to ensure we don't get an mtime that is lower than we know it isRobin Appelman2023-10-101-0/+142
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #40577 from nextcloud/s3-multipart-copy-27Julius Härtl2023-10-101-4/+12
|\ \ | |/ |/|
| * use multipart copy for s3Robin Appelman2023-09-221-4/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Store size in int|float for 32bit supportCôme Chilliet2023-09-252-4/+7
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #40379 from nextcloud/backport/38808/stable27Arthur Schiwon2023-09-214-4/+6
|\ | | | | [stable27] Fix issues where unencrypted_size was being falsely used for non-encrypted home folders
| * fix: Only read unencrypted_size when file is actually encryptedJulius Härtl2023-09-122-3/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * fix: Only store unencrypted_size if path should be encryptedJulius Härtl2023-09-122-1/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Wrap mimetype insert and getLastInsertId in a transactionLucas Azevedo2023-09-161-7/+9
| | | | | | | | Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* | fix(mimetype): Remove unnecessary transaction when storing a mime typeLucas Azevedo2023-09-161-26/+22
|/ | | | | | | | | | | | Fixes #40064. This could be fixed by adding a rollback and starting a new transaction before the SELECT query, but in this case that would have the same effect as not using one. See https://dev.mysql.com/doc/refman/8.0/en/innodb-autocommit-commit-rollback.html and https://www.postgresql.org/docs/7.1/sql-begin.html#R1-SQL-BEGIN-1 Signed-off-by: Lucas Azevedo <lhs_azevedo@hotmail.com>
* only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-09-072-4/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* reuse dependencies from wrapped cacheRobin Appelman2023-09-071-3/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #40286 from nextcloud/backport/40233/stable27Arthur Schiwon2023-09-071-2/+12
|\ | | | | [stable27] Detect aborted connection in OC\Files\View and stop writing data to t…
| * Detect aborted connection in OC\Files\View and stop writing data to the ↵Benjamin Gaussorgues2023-09-061-2/+12
| | | | | | | | | | | | output buffer Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Merge pull request #40231 from nextcloud/sharing-mask-wrapper-27Arthur Schiwon2023-09-065-77/+50
|\ \ | |/ |/| [27] move share permission logic to storage wrapper