Error changing directory when trying to open a directory with tilde and space in its name (SFTP)

Advertisement

kfpxdsqheckdcoqpui@tpwlb.com
Joined:
Posts:
1

Error changing directory when trying to open a directory with tilde and space in its name (SFTP)

There is a relevant topic from 20 years:
Regression in 3.4.2 (build 197) with '~ ' at begging of directory name
I'm using WinSCP 5.21.8 to connect to a Synology DiskStation with SFTP. Trying to open the ~cosmic horror directory results in "Error changing directory":
Command 'cd ~cosmic horror'
failed with return code 1 and the following error message.
-sh: line 72: cd: ~cosmic: No such file or directory
Seems like the command should've the directory name enclosed in quotes, but hasn't.

Opening a directory containing a tilde or a space, but not both, works fine.

winscpbug.png

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,336
Location:
Prague, Czechia

Re: Error changing directory when trying to open a directory with tilde and space in its name (SFTP)

You seem to be using SCP, not SFTP. With SFTP, you should not have the problem. Please try.

Reply with quote

Advertisement

You can post new topics in this forum