Skip to content

bug: python operator.list with start_after does not work for local file system #6676

@heman026

Description

@heman026

Describe the bug

Open dal operator list method with start_after arugment works fine with s3 but not with local file system. It always list all the files from the path. Eg. code given below.

operator = Operator("fs", root="tmp")
files = list(operator.list("", start_after = files[-1].path))

files has all entire list of files from the path in case of local file system. In case of s3, it only gives the new file.
Please help me resolve this issue

Steps to Reproduce

Explained in the bug details

Expected Behavior

The method should list only the new files in the path.

Additional Context

No response

Are you willing to submit a PR to fix this bug?

  • Yes, I would like to submit a PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions