aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/FileInfo.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(FileInfo): correctly implement `\ArrayAccess::offsetGet`Ferdinand Thiessen2024-09-061-9/+5
| | | | | | | We are targetting PHP 8.1+, since PHP 8.0 `offsetGet` has the `mixed` types for `offset` and return value. So this adds the types to correctly implement the interface. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-251-6/+6
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-241-30/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Refactoring getName functionhopleus2024-03-121-5/+3
| | | | Signed-off-by: hopleus <hopleus@gmail.com>
* Fixes for getting the file name in the cases when the file name key is ↵hopleus2024-02-191-1/+5
| | | | | | received, but it is empty Signed-off-by: hopleus <hopleus@gmail.com>
* chore: Add missing ArrayAccess template parametersCôme Chilliet2024-02-061-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #38622 from nextcloud/ifElseReturnMatchGit'Fellow2023-11-151-15/+8
|\ | | | | Replace if/else with return match
| * Replace if/else with return matchGit'Fellow2023-11-011-15/+8
| | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | optimize isShared and isMountedRobin Appelman2023-11-081-6/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | IFilesMetadataMaxence Lange2023-11-071-0/+9
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix: Only read unencrypted_size when file is actually encryptedJulius Härtl2023-09-061-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* add IFileInfo::getParentIdRobin Appelman2023-09-041-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-6/+2
|\ | | | | move share permission logic to storage wrapper
| * more share permission logic to storage wrapperRobin Appelman2023-08-141-6/+2
| | | | | | | | | | | | 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-17/+5
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: ugly type jugglingArthur Schiwon2023-06-211-3/+0
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* View needs to return an instance of OC\Files\FileInfo explicitelyCôme Chilliet2023-04-031-3/+1
| | | | | | | | Applications are calling methods from the class which are not from the public interface, and which cannot be added easily to public interface because Node interface extends FileInfo. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* More type cleanup in View and FileInfoCôme Chilliet2023-04-031-18/+14
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Allow float sizes in FileInfo for 32bitsCôme Chilliet2023-02-071-4/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix typos in lib/private subdirectoryluz paz2022-07-271-1/+1
| | | | | | Found via `codespell -q 3 -S l10n -L jus ./lib/private` Signed-off-by: luz paz <luzpaz@github.com>
* Fix metadata extractionCarl Schwan2022-06-221-1/+1
| | | | | | | | | The metadata extraction only happens when the size is not equal to 0, but due to a regression in FileInfo the size is always zero. This fix the regression. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* store unencrypted size in the unencrypted_size columnRobin Appelman2022-06-021-3/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* save filesystem node in dav nodeRobin Appelman2022-04-061-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-231-3/+7
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Remove unneeded casts that were found by PsalmMorris Jobke2021-01-111-1/+1
| | | | | | In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-051-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* cast ctime and utimeRobin Appelman2019-11-131-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont expose metadata etag for nowRobin Appelman2019-11-131-4/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose filecache extension data in FileInfoRobin Appelman2019-11-131-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-271-3/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add getExtension() to FileInfoRobin Appelman2018-10-291-0/+4
| | | | | | | this is a fairly common operation so it makes sense to prevent having to repeatedly implement it. Signed-off-by: Robin Appelman <robin@icewind.nl>
* use name in fileinfo if setRobin Appelman2018-10-171-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headersMorris Jobke2017-11-061-0/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Doc: Fix phpDoc issuesJulius Härtl2017-10-231-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* changed direct cast to integer to numerical value1 Man Projects2017-07-171-1/+1
|
* Removed cast to integer in getSize1 Man Projects2017-07-151-1/+1
| | | Fixes - Wrong or no sizes of files/folders #5031
* Remove unused use statementsMorris Jobke2017-04-221-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix type hints and doc blocksJoas Schilling2017-03-231-7/+7
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Ensure that FileInfo return values as required by its phpdoc.Piotr M2017-03-221-6/+8
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Improve isMounted to handle primary storage object storeRobin Appelman2016-11-161-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only query substorages to calculate the final mtime/size/etag lazilyRobin Appelman2016-11-101-1/+39
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Update license headersLukas Reschke2016-05-261-1/+1
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+346