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 download/cd files or folders with spaces in the name #7

Open
TopazA opened this issue Nov 13, 2017 · 1 comment
Open

Cannot download/cd files or folders with spaces in the name #7

TopazA opened this issue Nov 13, 2017 · 1 comment

Comments

@TopazA
Copy link

TopazA commented Nov 13, 2017

Hi there.

I have tried to change directory or list directory contents of files with spaces in the name, but every attempt results in the errors shown below.

[email protected]:/dir:/subdir>cd test folder
ERROR:root:cd() takes exactly 2 arguments (3 given) 
Traceback (most recent call last):
  File "/usr/bin/nfspysh", line 42, in __call__
    func(*args[1:])
TypeError: cd() takes exactly 2 arguments (3 given)
Usage: cd <dir> 

[email protected]:/dir:/subdir>cd test\ folder
ERROR:root:cd() takes exactly 2 arguments (3 given) 
Traceback (most recent call last):
  File "/usr/bin/nfspysh", line 42, in __call__
    func(*args[1:])
TypeError: cd() takes exactly 2 arguments (3 given)
Usage: cd <dir> 

[email protected]:/dir:/subdir>cd 'test folder'
[Errno 2] No such file or directory: "/'test folder'"
[email protected]:/dir:/subdir:/'test folder'> 

[email protected]:/dir:/subdir>cd "test folder"
[Errno 2] No such file or directory: '/"test folder"'
[email protected]:/dir:/subdir:/"test folder"> 

[email protected]:/dir:/subdir>cd "test\ folder"
[Errno 5] Input/output error: '/"test\\ folder"'
[email protected]:/dir:/subdir:/"test\ folder"> 

As a result, I'm unable to access the contents of these directories nor download any files from them.
Would appreciate it if this got fixed.
Thanks!

@sleirsgoevy
Copy link

Changing posix=False to posix=True in nfspysh fixes that.

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

2 participants