Skip to content

Cannot open directory "." with opendir() #57

@nyddogghr

Description

@nyddogghr

Hi,
I am implementing samba support in a python 3.5.10 software.
I'm using version 1.0.15.6 (the one available on debian stretch, see https://packages.debian.org/stretch/python3-smbc). I also tried directly with 1.0.23.
I have an issue when trying to list "." (current directory).

>>> context.opendir("smb://user:password@host:139/share/.")
smbc errno NT_STATUS_OBJECT_NAME_INVALID -> 22
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ValueError: (22, 'Invalid argument')

However, when I just remove the ".", I can use opendir(url).getdents() and I do get the two specific resources "." and ".." (as well as all other resources).

Is this normal?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions