NOTE: sftp> get cool.txt /data/SASWORK/SAS_workD88300960066_p00012/#LN00058Fetching
/home/myhome/cool.txt to /data/SASWORK/SAS_workD88300960066_p00012/cool.txt
The crucial part is this:
Fetching /home/myhome/cool.txt to /data/SASWORK/SAS_workD88300960066_p00012/cool.txt
(emphasis by me)
Somehow the sftp does not honor the target name and uses the source file name for the target.
... View more