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
Can't ls a certain folder #13
Comments
Looks a bit like this issue: paramiko/paramiko#707 |
@manwe your sftp server running on Windows? it's seem to like file name not use utf-8 encode. |
No, it's a synology NAS. DSM 6.2 |
Hi. I have an issue that I cannot read the contents of a certain folder. Others work without issues. The only difference in this folder is that it contains 1162 files and it's 19TB although I don't know if it's related with the issue.
[2021-12-27 12:12:45,767][INFO][_internal.py -- _log():225][ * Running on http://127.0.0.1:10010/ (Press CTRL+C to quit)]
[2021-12-27 13:05:24,744][ERROR][fuse.py -- _wrapper():750][Uncaught exception from FUSE operation readdir, returning errno.EINVAL.]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/fuse.py", line 734, in _wrapper
return func(*args, **kwargs) or 0
File "/usr/local/lib/python3.9/dist-packages/fuse.py", line 960, in readdir
for item in self.operations('readdir', self._decode_optional_path(path),
File "/usr/local/lib/python3.9/dist-packages/fuse.py", line 1251, in call
ret = getattr(self, op)(path, *args)
File "/usr/local/lib/python3.9/dist-packages/oxfs/oxfs.py", line 234, in readdir
entries = self.sftp.listdir(path)
File "/usr/local/lib/python3.9/dist-packages/paramiko/sftp_client.py", line 218, in listdir
return [f.filename for f in self.listdir_attr(path)]
File "/usr/local/lib/python3.9/dist-packages/paramiko/sftp_client.py", line 254, in listdir_attr
filename = msg.get_text()
File "/usr/local/lib/python3.9/dist-packages/paramiko/message.py", line 178, in get_text
return u(self.get_string())
File "/usr/local/lib/python3.9/dist-packages/paramiko/py3compat.py", line 161, in u
return s.decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf1 in position 56: invalid continuation byte
Any thoughts about how I can debug this?
cheers
The text was updated successfully, but these errors were encountered: