summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage
Commit message (Collapse)AuthorAgeFilesLines
* only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-09-071-2/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* more share permission logic to storage wrapperRobin Appelman2023-09-041-1/+2
| | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* Include PR #38965Git'Fellow2023-07-101-0/+1
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* implement optimized getDirectoryContent for DAVRobin Appelman2023-07-101-96/+125
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(sse): don't update uncached filesRichard Steinmetz2023-07-041-13/+21
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Fix deprecated method callDominik Fuchß2023-06-141-1/+2
| | | | Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Changes after code review.Dominik Fuchß2023-06-141-2/+7
| | | | Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Add config variable for curl timeoutDominik Fuchß2023-06-141-2/+6
| | | | | | Add the config variable for curl calls ("remote_curl_timeout"). E.g., needed for nextcloud federation. Signed-off-by: Dominik Fuchß <develop@fuchss.org>
* Merge pull request #38196 from nextcloud/fix/fix-32bits-freespace-and-sizesCôme Chilliet2023-05-152-3/+5
|\ | | | | Get rid of more int casts in file size manipulations
| * Get rid of more int casts in file size manipulationsCôme Chilliet2023-05-112-3/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Merge pull request #37621 from nextcloud/enh/lock-readable-pathJulius Härtl2023-05-131-0/+3
|\ \ | |/ |/|
| * fix: Wrap filesystem LockedExceptions for holding the readable pathJulius Härtl2023-05-021-0/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix file_get_content signatures to make it clear it can return falseCôme Chilliet2023-04-274-4/+4
|/ | | | | | | 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>
* Merge pull request #37818 from nextcloud/dav-ext-storage-logRobin Appelman2023-04-251-0/+18
|\ | | | | debug log requests made by dav external storage/shares
| * debug log requests made by dav external storage/sharesRobin Appelman2023-04-241-0/+18
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #36857 from nextcloud/scan-repair-unencrypted-sizeRobin Appelman2023-04-241-1/+4
|\ \ | |/ |/| fix unencrypted_size for folders when scanning the filesystem with encryption enabled
| * fix unencrypted_size for files when scanningRobin Appelman2023-04-041-1/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #37062 from nextcloud/free-spaceRobin Appelman2023-04-211-1/+1
|\ \ | | | | | | Check free space only if source exists and is dir
| * | Add function_exists() checkGit'Fellow2023-03-071-1/+1
| | | | | | | | | | | | Co-authored-by: Simon L. <szaimen@e.mail.de> Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
| * | Fix free space problemsGit'Fellow2023-03-071-1/+1
| | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | | Merge branch 'master' into enh/type-iconfig-getter-callsCôme Chilliet2023-04-202-1/+6
|\ \ \ | | | | | | | | Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * \ \ Merge pull request #37617 from nextcloud/notify-self-test-errorArthur Schiwon2023-04-111-0/+3
| |\ \ \ | | | | | | | | | | handle not being able to write file for notify self-test
| | * | | handle not being able to write file for notify self-testRobin Appelman2023-04-061-0/+3
| | | | | | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | | | Merge pull request #34607 from nextcloud/encryption-size-not-foundVincent Petry2023-04-061-1/+3
| |\ \ \ \ | | |/ / / | |/| | | fix encryption wrapper filesize for non existing files
| | * | | fix encryption wrapper filesize for non existing filesRobin Appelman2023-04-041-1/+3
| | | |/ | | |/| | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | / | Use typed version of IConfig::getSystemValue as much as possibleCôme Chilliet2023-04-053-4/+4
|/ / / | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Fix return type of methods returning false on errorCôme Chilliet2023-04-035-22/+14
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Remove unused method getLocalFolderCôme Chilliet2023-04-032-8/+0
|/ / | | | | | | | | | | It’s not used and not in any OCP interface/class. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | 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>
* 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 errors related to filesizesCôme Chilliet2023-02-073-3/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Strong type filesize related methods to ease 32bits problem findingsCôme Chilliet2023-02-078-21/+9
| | | | 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>
* fix(encryption): don't throw on missing fileRichard Steinmetz2023-01-301-4/+1
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix moving files of encrypted local storage to unencrypted local storageRobin Appelman2023-01-241-5/+13
| | | | | | for example when moving encrypted files to a groupfolder Signed-off-by: Robin Appelman <robin@icewind.nl>
* composer run cs:fixCôme Chilliet2023-01-206-8/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Suppress last psalm error until upstream fix is released and includedCôme Chilliet2023-01-021-0/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix psalm spotted errors with new requirementsCôme Chilliet2023-01-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* clear is-encrypted cache when trying to fix encrypted versionRobin Appelman2022-12-011-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix reading newly written encrypted files before their cache entry is writtenRobin Appelman2022-11-301-4/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix psalmszaimen2022-11-021-1/+1
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* remove 32-bit workaroundsszaimen2022-11-021-13/+0
| | | | Signed-off-by: szaimen <szaimen@e.mail.de>
* Rename file1 and file2 to source and target in Storage abstractionCarl Schwan2022-10-1811-124/+123
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* trigger a rescan when trying to fopen a file that exists in cache but not on ↵Robin Appelman2022-09-291-1/+8
| | | | | | disk Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #24596 from kofemann/dcache-wormVincent Petry2022-09-161-0/+14
|\ | | | | make NextCloud WORM file system friendly