Skip to content

Finding files by modified date returns incorrect results #347

Closed
@yuretzgt

Description

@yuretzgt

Describe the bug

search_date = datetime.datetime.now().replace(day=10) #wanna get files modified within last 24 hours
len(nc.files.find(["gt","last_modified",search_date],"search_folder")) # return files count in folder
len(nc.files.find(["lt","last_modified",search_date],"search_folder")) # return 0

Also there is a bug in docs
Image

Steps/Code to Reproduce

Just try to find with date modified with more and less than any value

Expected Results

List files that modified from provided date

Actual Results

All files when GT
Zero files when LT

Setup configuration

nc_py_api == 0.19.2
nextcloud == 30

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestfixed in upcoming releasefix will arrive with next release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions