Using a Protocol URL Address to open a file for editing
I'm trying to add a link via a userscript to a web interface, that opens a certain file for editing when clicked. The relevant part of the documentation seems to be here:
The linked documentation mentions adding
What actually happens is that whether or not the path ends in a slash, the directory is opened on the correct host but nothing is downloaded. How can I make a link in the following form open a file for editing when clicked?If path part is included and it ends with slash (/
), WinSCP starts with the path as initial remote directory. If the path part does not end with slash, the file (or directory) specified by it is downloaded.
<a href="winscp-sftp://ben@hostname.com/home/ben/path/to/file.txt">test</a>
;save
after a URL to trigger that action, so I tried adding some possibly-relevant commands in the same format eg ;edit
or ;get
, with no change in results.