aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
| * config: add a switch to control truncate before updateTigran Mkrtchyan2022-09-161-6/+12
| | | | | | | | | | | | | | | | | | To avoid extra truncate on non WORM file systems, add a new config option `localstorage.unlink_on_truncate`, which defaults to false. The OC\Files\Storage\Local is update to respect that option. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
| * files: remove destination file before copying new content (WORM)Tigran Mkrtchyan2022-09-161-0/+2
| | | | | | | | Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
| * files: make OC\Files\Storage\Local WORM friendlyTigran Mkrtchyan2022-08-251-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some filesystems run as a Write-Once-Read-Many storages. This makes them impossible to use with NexeCloud, as the file system layers uses `truncate` syscall (through file_put_contents function). As Nextcloud is never updates existing files, removing the old entry and creatint a new one on update will allow NextCoud to update on such file systems. Update Local#fopen and Local#file_put_contents to remote existing file before truncating. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
* | Switch logical operators (and|or)Git'Fellow2022-09-121-18/+12
| | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | get quota for user only when neededRobin Appelman2022-09-011-20/+51
|/ | | | | | always apply the wrapper but have the wrapper get the quota lazily only when an operation where quota is applied is performed Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-141-1/+1
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #31475 from nextcloud/kofemann-patch-1blizzz2022-06-211-0/+1
|\ | | | | files: close open directory file descriptor on error path
| * files: close open directory file descriptor on error pathTiramisu Mokka2022-03-071-0/+1
| |
* | Merge pull request #31966 from nextcloud/unencrypted-sizeVincent Petry2022-06-131-40/+58
|\ \ | | | | | | store unencrypted size in the unencrypted_size column
| * | store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-021-40/+58
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Expose umask override value as config parameter: localstorage.umaskMartin Brugnara2022-06-051-5/+9
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 451c06d introduced override for umask value. This is needed to avoid broken env configuration or dirty workers to mess with the permissions when creating new files. Most Nextcloud, that does not integrate with external software would work fine with an hard-coded value (451c06d set it at 022). Advanced install may require more flexibility, as such this commit exposes the "umask override value" as configuration parameter: `localstorage.umask` It defaults to 0022 both in code and in config/config.sample.php . Signed-off-by: Martin Brugnara <martin@0x6d62.eu>
* | composer run cs:fixCôme Chilliet2022-04-261-1/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Remove ILogger usages in lib/private/Files/StorageCôme Chilliet2022-04-263-19/+25
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | ignore forbidden files while scanning local storageRobin Appelman2022-04-201-1/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | use the same cached propfind for free space for dav storageRobin Appelman2022-04-041-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>