Skip to content

The 'getinfo' method returns an extra root path #36

@y805939188

Description

@y805939188

When I execute the function listdir() to get file list, if there is a path in url, the method will return an extra path name.
There is a test directory in my root path:
image
My code attempts to obtain a list of files in the test directory:

url = 'http://localhost:6666/test'
handle = WebDAVFS(url, login='admin', password='admin')
test = handle.listdir('./')
print(list(test))

I expected to only get 'c.txt' and 'd. txt', but now I will get an extra 'test':
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions