aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/Node.php
Commit message (Collapse)AuthorAgeFilesLines
* fix(events): Make sure all `\OCP\Files::…` events are emitted with the ↵Joas Schilling2023-11-091-1/+8
| | | | | | same data Signed-off-by: Joas Schilling <coding@schilljs.com>
* IFilesMetadataMaxence Lange2023-11-071-1/+10
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* add method to create a node from cache entry + mountpointRobin Appelman2023-09-191-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Pass parent to NonExistingFile instancesJulius Härtl2023-09-131-1/+10
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* reuse isValidPath from FilesystemRobin Appelman2023-09-041-7/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* make LazyFolder::get not load the real folder if we know the pathRobin Appelman2023-09-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add IFileInfo::getParentIdRobin Appelman2023-09-041-7/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* make Node::getParent lazyRobin Appelman2023-09-041-1/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix!: Move getEventDispatcher usage to IEventDispatcherJoas Schilling2023-07-281-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: ugly type jugglingArthur Schiwon2023-06-211-8/+8
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: add typehine for IRootFolderArthur Schiwon2023-06-211-7/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* fix: Use proper path when creating node instancesJulius Härtl2023-04-171-1/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* only fetch the data for mounts inside a folder when neededRobin Appelman2023-02-091-25/+31
| | | | | | | | 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>
* Type sizes as int|float throughout the code baseCôme Chilliet2023-02-071-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Test valid path only if file info has to be retrievedGlandos2022-11-061-3/+3
| | | | Signed-off-by: Glandos <bugs-github@antipoul.fr>
* Avoid extra query for the parent node if we can pass it alongJulius Härtl2022-08-241-5/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* rename cached fileinfo on renameRobin Appelman2022-04-041-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* dont needlessly resolve path when getting internalPath/storage from NodeRobin Appelman2022-04-041-7/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* split out some path manipulation logicRobin Appelman2022-04-041-17/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-181-2/+2
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-1/+0
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. 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-2/+2
| | | | 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-6/+17
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* 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>
* emit file events via Dispatcher, tooArthur Schiwon2019-09-091-10/+14
| | | | | | another step to get rid of hooks and emitters Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow renaming the root of a movable mount even if the parent folder is readonlyRobin Appelman2019-03-141-1/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-271-2/+3
| | | | 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>
* Actually return the root folder when traversing up the treeRoeland Jago Douma2018-04-261-1/+5
| | | | | | | | If you now keep calling $node->getParent() you will at some point get the RootFolder back. This is a nice termination check and will prevent endless loops if an exit condition is slightly off. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove useless return statementsMorris Jobke2018-01-251-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Fix files node API failed rename/copyVincent Petry2017-01-121-17/+61
| | | | | | | 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>
* Refactor files node API for more code reuseVincent Petry2017-01-111-1/+1
| | | | 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/+383