summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
Commit message (Collapse)AuthorAgeFilesLines
* fix: Pass the mountpoint target user to storages without ownerJulius Härtl2024-07-221-0/+12
| | | | | | | | | | | | | Storages that do not have a dedicated owner (e.g. groupfolders, external storages) currently always assume the current session user as the owner. This leads to several issues when there is no user session but a node is obtained through a user folder. In order to have the correct user available we need to pass the user that is used to setup a mountpoint along to the storage layer as we generally assume that an owner is available for those. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-0414-14/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat: add interface for lower level filecache acess without having to do ↵Robin Appelman2024-03-251-0/+99
| | | | | | direct db queries Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: Add iconSvgInline to TemplateFileCreatorChristopher Ng2024-03-201-1/+13
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* refactor(mimeloader): modernize MimeTypeLoaderThomas Citharel2024-03-141-4/+4
| | | | Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* feat(files): copy live photosMaxence Lange2024-03-084-47/+13
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* feat: add interface to get only a single node by id instead of all nodes for ↵Robin Appelman2024-03-042-1/+39
| | | | | | | | 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 some comments for the distributive operation and add another testRobin Appelman2024-02-161-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix types + autoloaderRobin Appelman2024-02-151-1/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* optimize query pattern used by storage filterRobin Appelman2024-02-151-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(OCP): Add since tag for all constantsJoas Schilling2024-02-1410-1/+162
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add missing ArrayAccess template parametersCôme Chilliet2024-02-061-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Use OCP\Util::getL10N instead of OC::$server->getL10NCôme Chilliet2024-02-056-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* perf: Avoid updating the folder size if we know the size differenceJulius Härtl2024-01-121-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Synchronize operation on live photo filesLouis Chemineau2023-11-292-0/+46
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-234-4/+4
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Fix is-define operatorLouis Chemineau2023-11-221-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* implements search on null/notnull metadataMaxence Lange2023-11-221-0/+1
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge pull request #41565 from nextcloud/fix/object-storage-inconsitent-behaviorFerdinand Thiessen2023-11-221-2/+2
|\ | | | | fix(ObjectStore): Make copying behavior consistent with local storage
| * fix(ObjectStore): Make copying behavior consistent with local storageFerdinand Thiessen2023-11-171-2/+2
| | | | | | | | | | | | Drop file permissions on copy like we do on local storage. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | accept boolean valueMaxence Lange2023-11-221-2/+2
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* optimize UserMountCache::registerStorageRobin Appelman2023-11-161-0/+8
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* IFilesMetadataMaxence Lange2023-11-072-21/+3
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* IFilesMetadataMaxence Lange2023-11-073-2/+47
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* enh(IMountManager): Add method to get MountPoint from CachedMountInfoJonas2023-10-231-0/+12
| | | | Signed-off-by: Jonas <jonas@freesources.org>
* Merge pull request #40478 from nextcloud/node-from-entryJohn Molakvoæ2023-10-181-0/+12
|\
| * add method to create a node from cache entry + mountpointRobin Appelman2023-09-191-0/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | feat(files): migrate template pickerJohn Molakvoæ2023-10-171-0/+1
|/ | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Detect aborted connection in OC\Files\View and stop writing data to the ↵Benjamin Gaussorgues2023-09-071-0/+33
| | | | | | output buffer Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* add IFileInfo::getParentIdRobin Appelman2023-09-041-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-0/+8
|\ | | | | move share permission logic to storage wrapper
| * more share permission logic to storage wrapperRobin Appelman2023-08-141-0/+8
| | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | improve performance of calculating dav permissionsRobin Appelman2023-08-181-6/+7
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | feat: redirect to the mime icon if no preview availableJohn Molakvoæ2023-08-171-0/+6
|/ | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanupJoas Schilling2023-08-042-0/+132
|\ | | | | fix!: Final round of moving to IEventDispatcher
| * feat!: Migrate TagService events to typed eventsJoas Schilling2023-07-282-0/+132
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix share roots always being marked as writableRobin Appelman2023-07-281-2/+16
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | expose MovableMount in public interfaceRobin Appelman2023-07-281-0/+48
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* files: Add OpenAPI specjld31032023-07-121-0/+4
| | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* Merge pull request #37969 from nextcloud/poc/noid/systemtags-perf-tag-endpointJulius Härtl2023-06-281-0/+10
|\
| * feat: add searchBySystemTag as PHP APIArthur Schiwon2023-06-211-0/+10
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | refactor: declare getMount() and getMountsIn() at IRootFolderArthur Schiwon2023-06-211-0/+13
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix typos in lib/public subdirectorySimon L2023-05-101-1/+1
| | | | | | | | | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/public` Signed-off-by: luz paz <luzpaz@github.com> Update lib/public/Accounts/IAccount.php Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: Simon L <szaimen@e.mail.de> Co-Authored-By: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
* Merge pull request #37943 from nextcloud/fix/fix-getcontent-return-typeArthur Schiwon2023-05-033-2/+3
|\ | | | | Fix file_get_content signatures to make it clear it can return false
| * Fix file_get_content signatures to make it clear it can return falseCôme Chilliet2023-04-273-2/+3
| | | | | | | | | | | | | | In File::getContent, which must return a string, throw an Exception instead of returning false. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Empty fallback for template creator action labelJulius Härtl2023-04-271-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Create new file/folder labelsChristopher Ng2023-04-271-1/+21
| | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* More type cleanup in View and FileInfoCôme Chilliet2023-04-032-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix return type of methods returning false on errorCôme Chilliet2023-04-033-7/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Improve typing for fopen/toTmpFileCôme Chilliet2023-04-031-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>