Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nyddogghr opened this issue Dec 14, 2020 · 0 comments
Open

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

nyddogghr opened this issue Dec 14, 2020 · 0 comments

Comments

@nyddogghr
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant