Skip to content

FileAPI, find method doesn't work well for Group Folders #263

Open
@zhongzishi

Description

@zhongzishi

Describe the bug

When the search target is a Group Folder, if the path contains only the root folder, the Find method works great. I can get all matching files, even in deep subfolders. But if the path contains a subfolder, the search result is empty.

When the search target is other than a Group Folder (personal folder or shared folder), it works great with paths containing subfolders.

Steps/Code to Reproduce

  1. nc.files.find(["like","name","%.png"],path="GroupFolderB/")

image

  1. nc.files.find(["like","name","%.png"],path="GroupFolderB/subFolderA")

image
image

Expected Results

Returns matching files under the target path (including subfolders)

Actual Results

Returns empty results.

Setup configuration

nc_py_api commit version: fd92a25

NextCloud 28.0.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    nc upstream issuewaiting for it to be fixed/implemented in the Nextcloud

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions