Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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.
kfpxdsqheckdcoqpui@tpwlb.com

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.