summaryrefslogtreecommitdiffstats
path: root/lib/public/Files
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #40286 from nextcloud/backport/40233/stable27Arthur Schiwon2023-09-071-0/+33
|\ | | | | [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-0/+33
| | | | | | | | | | | | output buffer Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | more share permission logic to storage wrapperRobin Appelman2023-09-041-0/+8
|/ | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix share roots always being marked as writableRobin Appelman2023-07-281-2/+16
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* docs: adjust @since version to backportArthur Schiwon2023-06-261-2/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* refactor: declare getMount() and getMountsIn() at IRootFolderArthur Schiwon2023-06-231-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>
* Make it clear that file sizes may be float on 32bitsCôme Chilliet2023-04-012-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(s3): Use multipart upload for chunked uploadingJulius Härtl2023-03-082-0/+129
| | | | | | This allows to stream file chunks directly to S3 during upload. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #36566 from nextcloud/mount-find-by-numeric-idJulius Härtl2023-02-081-2/+2
|\
| * fix testsRobin Appelman2023-02-071-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Move back typing to phpdoc to keep backward compatibility in OCPCôme Chilliet2023-02-072-2/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Type sizes as int|float throughout the code baseCôme Chilliet2023-02-073-3/+3
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Allow float sizes in FileInfo for 32bitsCôme Chilliet2023-02-071-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Strong type filesize related methods to ease 32bits problem findingsCôme Chilliet2023-02-072-8/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* ci: migrate ocp since checker to psalmDaniel Kesselberg2023-01-241-0/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* composer run cs:fixCôme Chilliet2023-01-2027-27/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix link to documentation of php functionbbx-github2023-01-031-1/+1
| | | Signed-off-by: bbx-github <53237674+bbx-github@users.noreply.github.com>
* Align checksum dav property with desktop client parsingJulius Härtl2022-12-301-1/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Rename file1 and file2 to source and target in Storage abstractionCarl Schwan2022-10-182-12/+12
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix testsJohn Molakvoæ2022-10-141-0/+17
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #33697 from nextcloud/fix/improve-bulk-uploadCôme Chilliet2022-08-301-0/+89
|\ | | | | Improve bulk upload and add a config switch for it
| * Move dav utils functions to OCP\Files\DavUtilCôme Chilliet2022-08-301-0/+89
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | add marker interface to mark system mount points for encryptionRobin Appelman2022-08-251-0/+34
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Document all getIncomplete implementations as returning string|falseCôme Chilliet2022-08-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Multiple fixesCarl Schwan2022-07-312-0/+175
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add typing to SimpleFSCarl Schwan2022-07-144-43/+24
| | | | | | - Fix putContent sometimes return a bool and sometimes nothing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-021-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make it possible to get the appdata folder using the public APICarl Schwan2022-05-111-0/+21
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #31676 from nextcloud/enh/ocp-owner-lockVincent Petry2022-04-086-0/+477
|\ | | | | Add public API for owner based file locking
| * Adapt LockScope to LockContext renameJulius Härtl2022-04-073-6/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * Add public API for owner based lockingJulius Härtl2022-04-046-0/+476
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #31713 from nextcloud/fed-performanceRobin Appelman2022-04-071-0/+35
|\ \ | | | | | | Federated share performance improvements
| * | don't overwrite the etag from storage backends that already provide "good" etagsRobin Appelman2022-04-041-0/+35
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize getById on LazyUserFolder to not require a full fs setupRobin Appelman2022-04-041-1/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | allow getting mounts by providersRobin Appelman2022-04-041-2/+2
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>