NfSpy icon indicating copy to clipboard operation
NfSpy copied to clipboard

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

Open TopazA opened this issue 7 years ago • 1 comments

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!

TopazA avatar Nov 13 '17 04:11 TopazA

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

sleirsgoevy avatar Feb 07 '18 11:02 sleirsgoevy