aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | More type cleanup in View and FileInfoCôme Chilliet2023-04-032-95/+82
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Fix return type of methods returning false on errorCôme Chilliet2023-04-039-36/+22
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Improve typing for fopen/toTmpFileCôme Chilliet2023-04-032-4/+5
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Remove unused method getLocalFolderCôme Chilliet2023-04-034-30/+0
| | | | | | | | | | | | | | | | | | | | | | | | It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | | Tidy up typing in OC\Files\ViewCôme Chilliet2023-04-032-122/+74
| | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | Merge pull request #36097 from nextcloud/path-prefix-optimizeRobin Appelman2023-04-033-13/+58
|\ \ \ \ | | | | | | | | | | extend path-prefix optimizer to remove all cases of path_hash= when encountering a path prefix filter
| * | | | extend path-prefix optimizer to remove all cases of path_hash= when ↵Robin Appelman2023-01-113-13/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | encountering a path prefix filter Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | Fix inherited parameter namesjld31032023-04-033-8/+8
| |/ / / |/| | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | | | clear encrypted flag when moving away from encrypted storageRobin Appelman2023-04-012-0/+31
| |/ / |/| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Remove useless coalescing operator on non-null return valueCôme Chilliet2023-04-011-1/+1
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Fix quota typing for 32bits after forward port from 25Côme Chilliet2023-04-011-2/+2
| | | | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* | | Silence a warning from psalm with explanationCôme Chilliet2023-04-011-0/+1
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Adapt types of subclassesCôme Chilliet2023-04-014-6/+6
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Make it clear that file sizes may be float on 32bitsCôme Chilliet2023-04-012-9/+11
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Remove quota value type for 32-bit systemsVincent Petry2023-04-011-2/+2
| | | | | | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | | Merge pull request #36810 from nextcloud/setup-user-onetime-before-mountsRobin Appelman2023-03-241-9/+7
|\ \ \ | | | | | | | | do onetime user setup before getting any mount from providers
| * | | do onetime user setup before getting any mount from providersRobin Appelman2023-02-221-9/+7
| | |/ | |/| | | | | | | | | | | | | this fixes a race condition where wrappers weren't properly applied if when a mount provider creates the storage instance one mountpoint creation instead of lazily Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #34773 from ↵Côme Chilliet2023-03-211-1/+19
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/artonge/feat/dispatch_entry_removed_event_for_all_entries Dispatch event for all removed entries
| * | | Dispatch event for all remove entryLouis Chemineau2023-01-311-1/+19
| | | | | | | | | | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | | Merge pull request #33061 from ibpl/master-IB#1121253Côme Chilliet2023-03-141-7/+8
|\ \ \ \ | | | | | | | | | | Paths added to messages and message cleanup
| * \ \ \ Merge masterPawel Boguslawski2022-11-0429-179/+212
| |\ \ \ \
| * | | | | 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>
* | | | | | Merge pull request #27034 from nextcloud/enh/s3-multipart-upload-apiArthur Schiwon2023-03-092-3/+133
|\ \ \ \ \ \ | | | | | | | | | | | | | | Use MultipartUpload for uploading chunks to s3
| * | | | | | feat(s3): Use multipart upload for chunked uploadingJulius Härtl2023-03-082-3/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows to stream file chunks directly to S3 during upload. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | | | Merge pull request #36609 from nextcloud/lazyuserfolder-mountpointArthur Schiwon2023-03-092-3/+17
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | optimize LazyUserFolder::getMountPoint
| * | | | | | optimize LazyUserFolder::getMountPointRobin Appelman2023-02-132-3/+17
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | no need to do a full setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | Add transaction around mass mounts operationsJoas Schilling2023-03-071-12/+19
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | | fix: Use proper path for quota fetchingJulius Härtl2023-03-061-2/+2
|/ / / / / | | | | | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | | | Merge pull request #36643 from nextcloud/fs-setup-instrimuntionRobin Appelman2023-02-133-20/+69
|\ \ \ \ \ | | | | | | | | | | | | more filesystem setup performance instrumentation
| * | | | | more filesystem setup performance instrumentationRobin Appelman2023-02-103-20/+69
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | Merge pull request #36610 from nextcloud/folder-lazy-submountsJulius Härtl2023-02-105-37/+50
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | only fetch the data for mounts inside a folder when neededRobin Appelman2023-02-095-37/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* | | | | | Merge pull request #36566 from nextcloud/mount-find-by-numeric-idJulius Härtl2023-02-082-12/+21
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | fix testsRobin Appelman2023-02-071-3/+11
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | cache numeric id in mountpointRobin Appelman2023-02-061-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | deduplicate getStorage() logic in Mount\ManagerRobin Appelman2023-02-061-9/+1
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | | dont delegate Mount\Manager::getByNumericId to getByStorageIdRobin Appelman2023-02-061-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | | | Respect OCP interface in private classesCôme Chilliet2023-02-078-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Because the parameter type was moved to phpdoc it needs to be removed from implementations Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | Fix psalm errorsCôme Chilliet2023-02-072-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | Type sizes as int|float throughout the code baseCôme Chilliet2023-02-077-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | Allow float sizes in FileInfo for 32bitsCôme Chilliet2023-02-071-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | Fix psalm errors related to filesizesCôme Chilliet2023-02-074-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | Strong type filesize related methods to ease 32bits problem findingsCôme Chilliet2023-02-079-22/+10
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | | Revert "remove 32-bit workarounds"Côme Chilliet2023-02-071-0/+13
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit dd8774389e21b59c07882580356d51de018fe867. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | | | Make sure name and path are stringsJoas Schilling2023-02-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Otherwise Oracle returns NULL for empty strings and PHP 8.2 throws on null in string functions like trim() and md5() Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | | Try fixing OracleJoas Schilling2023-02-021-1/+6
| |_|/ / |/| | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | fix(encryption): don't throw on missing fileRichard Steinmetz2023-01-301-4/+1
| | | | | | | | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>