aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node
Commit message (Collapse)AuthorAgeFilesLines
* fix: catch NotPermittedException in Folder.nodeExistsupdate-phpdoc-for-folder-getDaniel Kesselberg2024-09-301-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* docs: Folder.get throws a NotPermittedException exceptionDaniel Kesselberg2024-09-303-23/+0
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-1/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Files): Handle getOwner() returning falsefix/storage/get-owner-falseprovokateurin2024-09-172-3/+18
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Do not fail to get internal path on NonExistingFile/NonExistingFolderJulius Härtl2024-08-292-0/+16
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* fix: Renaming does not need update but delete permissionsFerdinand Thiessen2024-08-281-5/+8
| | | | | | | Renaming is basically copy + delete (a move), so no need to update permissions. Especially if the node is in a invalid directory the node should be moveable but not editable. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-254-4/+4
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(files): Fix incorrect keys by reindexingChristopher Ng2024-08-011-2/+2
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix: `OCP\Files\Node\Folder::search` was not setting the ownerFerdinand Thiessen2024-07-111-1/+24
| | | | | | The owner was not set on the file info causing e.g. webdav searches to never return the known owner. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: also use optimized getFirstNodeyIdInPath for Folder::getFirstNodeByIdRobin Appelman2024-06-201-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Try create folder first and check if it exists afterGit'Fellow2024-05-301-1/+1
| | | | Co-authored-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com> Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(files): Try to create dir only if it not existsGit'Fellow2024-05-301-1/+1
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-2410-229/+35
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix: LazyRoot missing methodMarcel Klehr2024-05-141-0/+4
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* feat: first pass at TaskProcessing APIMarcel Klehr2024-05-141-1/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-024-4/+4
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(files): copy live photosMaxence Lange2024-03-081-21/+29
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* perf: cache path by id to speedup getting nodes by idRobin Appelman2024-03-041-2/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add interface to get only a single node by id instead of all nodes for ↵Robin Appelman2024-03-046-14/+23
| | | | | | | | the id this should be enough in most(?) cases and makes efficient implementation and caching easier Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: rename users to account or personVincent Petry2024-02-131-1/+1
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Synchronize operation on live photo filesLouis Chemineau2023-11-291-2/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-233-5/+5
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* 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-2/+0
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* IFilesMetadataMaxence Lange2023-11-073-1/+21
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix(Folder): Allow filename to be '0'Marcel Klehr2023-10-221-1/+1
| | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* add method to create a node from cache entry + mountpointRobin Appelman2023-09-193-1/+34
| | | | 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-042-15/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* make LazyFolder::get not load the real folder if we know the pathRobin Appelman2023-09-044-27/+56
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add IFileInfo::getParentIdRobin Appelman2023-09-042-7/+15
| | | | 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>
* allow passing more info to lazy folderRobin Appelman2023-09-041-0/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: prevent sharing permissions on user root folderJohn Molakvoæ2023-09-011-1/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix!: Move getEventDispatcher usage to IEventDispatcherJoas Schilling2023-07-281-2/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Move Node HookConnecter events to IEventDispatcherJoas Schilling2023-07-271-25/+13
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(node): non-existing folder is not searchableArthur Schiwon2023-07-131-0/+4
| | | | | | | the previosuly introduced searchBySystemTag was not overwritten in NonExistingFolder and could run the inherited method. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* chore: Replace \OC::$server->query with \OCP\Server::get in /libChristoph Wurst2023-07-061-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #37969 from nextcloud/poc/noid/systemtags-perf-tag-endpointJulius Härtl2023-06-282-0/+9
|\
| * fix: cominbation of small fixesArthur Schiwon2023-06-211-2/+2
| | | | | | | | | | | | | | | | - possible null return - parameter name mismatch in implementation - incomplete unit test Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * feat: add searchBySystemTag as PHP APIArthur Schiwon2023-06-211-0/+4
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * fix: change if with conditionless else to switch; and a parameter valueArthur Schiwon2023-06-211-1/+1
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
| * use efficient tag retrieval on DAV report requestArthur Schiwon2023-06-211-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - uses DAV search approach against valid files joined by systemtag selector - reduced table join for tag/systemtag search - supports pagination - no changes to the output formats or similar Example request body: <?xml version="1.0"?> <oc:filter-files xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns" xmlns:nc="http://nextcloud.org/ns" xmlns:ocs="http://open-collaboration-services.org/ns"> <d:prop> <d:getcontentlength/> <d:getcontenttype/> <d:getetag/> <d:getlastmodified/> <d:resourcetype/> <nc:face-detections/> <nc:file-metadata-size/> <nc:has-preview/> <nc:realpath/> <oc:favorite/> <oc:fileid/> <oc:permissions/> <nc:nbItems/> </d:prop> <oc:filter-rules> <oc:systemtag>32</oc:systemtag> </oc:filter-rules> <d:limit> <d:nresults>50</d:nresults> <nc:firstresult>0</nc:firstresult> </d:limit> </oc:filter-files> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | ci: pro forma check of existence of internal methodArthur Schiwon2023-06-211-7/+9
| | | | | | | | | | | | | | createNode() is protected and used by Folder, but being an internal-only method it shall not be exposed in the Folder or IRootFolder interface. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | refactor: declare getMount() and getMountsIn() at IRootFolderArthur Schiwon2023-06-213-15/+8
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | chore: ugly type jugglingArthur Schiwon2023-06-213-13/+18
| | | | | | | | 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>
* Merge pull request #38261 from fsamapoor/replace_strpos_calls_in_lib_privateRobin Appelman2023-06-011-3/+3
|\ | | | | Refactors "strpos" calls in lib/private to improve code readability.
| * Refactors "strpos" calls in lib/private to improve code readability.Faraz Samapoor2023-05-151-3/+3
| | | | | | | | Signed-off-by: Faraz Samapoor <fsamapoor@gmail.com>