summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
Commit message (Collapse)AuthorAgeFilesLines
* Add missing PHPDoc in InvalidateMountCacheEventVincent Petry2022-03-241-0/+10
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Apply suggestions from code reviewRobin Appelman2022-03-241-1/+1
| | | | | | | Co-authored-by: Louis <6653109+artonge@users.noreply.github.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix method nameRobin Appelman2022-03-241-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add logic to perform a full filesystem setup when neededRobin Appelman2022-03-241-0/+45
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* update cached mounts when only specific providers have been setupRobin Appelman2022-03-241-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow getting mounts by providerRobin Appelman2022-03-241-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* allow getting cached mounts by path from the mount cacheRobin Appelman2022-03-241-0/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #31431 from nextcloud/fs-setup-managerRobin Appelman2022-03-084-17/+51
|\ | | | | Unify/cleanup filesystem setup
| * type fixesRobin Appelman2022-03-041-0/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * move logic to decide what to setup to setupmanagerRobin Appelman2022-03-041-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * adjust tests to new fs setupRobin Appelman2022-03-041-0/+32
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * more type hints for ICachedMountInfo and IMountManagerRobin Appelman2022-03-043-17/+17
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Note DI only usage in PHPDocChristopher Ng2022-03-071-1/+5
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | Add missing @since in InMemoryFile to please CICôme Chilliet2022-03-071-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Extend simple file with extension getterChristopher Ng2022-03-042-0/+12
|/ | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* store mountprovider for each mount in the mounts tableRobin Appelman2022-02-232-0/+16
| | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix some issues with the API documentationCarl Schwan2022-02-172-2/+5
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* code checker fixes for instanceOfStorageRobin Appelman2021-12-023-2/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* teach psalm about `Storage::instanceOfStorage`Robin Appelman2021-12-021-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-232-2/+2
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge branch 'master' into imountpoint-ocp-storageJohn Molakvoæ2021-10-22100-280/+135
|\
| * Add already used optional sizeDifference parameter to IPropagatorJulius Härtl2021-10-141-1/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Merge pull request #28608 from nextcloud/path-prefix-filterVincent Petry2021-10-072-0/+20
| |\ | | | | | | generate a better optimized query for path prefix search filters
| | * generate a better optimized query for path prefix search filtersRobin Appelman2021-08-262-0/+20
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Fix typo on the DocBlock of the copy methodAsier Iturralde Sarasola2021-08-271-1/+1
| |/ | | | | | | Signed-off-by: Asier Iturralde Sarasola <asier.iturralde@gmail.com>
| * Merge pull request #28476 from nextcloud/search-jail-insensitiveVincent Petry2021-08-241-0/+1
| |\ | | | | | | use case insensitive like when limiting search to jail
| | * use case insensitive like when limiting search to jailRobin Appelman2021-08-171-0/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | Remove some mentions of ownCloud from our api documentationCarl Schwan2021-07-292-4/+4
| |/ | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
| * Migrate HintException to OCPGary Kim2021-06-301-1/+1
| | | | | | | | Signed-off-by: Gary Kim <gary@garykim.dev>
| * use searchoperation for storage filter instead of db expressionRobin Appelman2021-06-141-6/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * rework search api to allow searching on multiple caches at onceRobin Appelman2021-06-141-0/+29
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Update php licensesJohn Molakvoæ (skjnldsv)2021-06-04100-268/+73
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * Rename External storages to External storageszaimen2021-05-202-2/+2
| | | | | | | | Signed-off-by: szaimen <szaimen@e.mail.de>
| * set mimetype for objects uploaded to object storagesRobin Appelman2021-04-211-1/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * 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>
* | dont return private storage interface from public mount interfaceRobin Appelman2021-03-232-2/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* handle ordering in folder searchRobin Appelman2021-03-191-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only require user to be set in a query that handles tagsRobin Appelman2021-03-181-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add ICopyFromCache trait to expose existing implementationRobin Appelman2021-03-121-0/+11
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* catch notfound and forbidden exception in smb::getmetadataRobin Appelman2021-03-041-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move AbstractCacheEvent into OCPRobin Appelman2021-02-154-6/+95
| | | | | | otherwise we have concrete cache events in OCP extending non OCP classes Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make whole Template class finalJulius Härtl2021-01-281-10/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Move TemplateProvider registration to boot context and make template type ↵Julius Härtl2021-01-282-8/+7
| | | | | | registration lazy Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Skip template picker if none availableJohn Molakvoæ (skjnldsv)2021-01-282-3/+20
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Add templatedirectory config value to let admins have their custom templates ↵Julius Härtl2021-01-282-2/+18
| | | | | | by default Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add ratio to template creatorsJulius Härtl2021-01-281-1/+29
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add template pickerJohn Molakvoæ (skjnldsv)2021-01-281-1/+1
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* files: Create files from template APIJulius Härtl2021-01-285-0/+350
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headersChristoph Wurst2020-12-303-1/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>