aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/File.php
Commit message (Collapse)AuthorAgeFilesLines
* chore: Add SPDX headerAndy Scherzinger2024-05-241-25/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Fix file_get_content signatures to make it clear it can return falseCôme Chilliet2023-04-271-5/+7
| | | | | | | 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>
* Improve typing for fopen/toTmpFileCôme Chilliet2023-04-031-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* only fetch the data for mounts inside a folder when neededRobin Appelman2023-02-091-1/+1
| | | | | | | | for most operations we don't actually care about any mounts inside a folder, only for metadata that needs to propagate across storage boundaries (size, etag, mtime) do we need all the submount info. By only loading this data when needed we can save a bunch of storage setup in a number of cases Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix PHP 8.2 warnings about undeclared propertiesCôme Chilliet2022-06-211-1/+0
| | | | 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>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-1/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Properly anotate LockedException in files node apiJulius Härtl2019-11-281-3/+12
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* emit file events via Dispatcher, tooArthur Schiwon2019-09-091-1/+1
| | | | | | another step to get rid of hooks and emitters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* 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>
* Add resource type phpDoc for putContent methodsJulius Härtl2018-06-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Throw an exception if file_put_contents failsRoeland Jago Douma2018-03-271-1/+5
| | | | | | | | * This will help with AppData hardening etc * Introduced a GenericFileException for if nothing else is appropiate - Maybe the other File exceptions should base on this? Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Fix files node API failed rename/copyVincent Petry2017-01-121-46/+10
| | | | | | | Whenever a rename or copy operation failed on the view, we must throw an exception instead of just ignoring. Signed-off-by: Vincent Petry <pvince81@owncloud.com>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-3/+4
|
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-0/+176