SFTP's handling of "." and ".."
    Philipp Marek 
    philipp at marek.priv.at
       
    Fri Jul  4 14:20:50 AEST 2025
    
    
  
Is this enough?
What about
   put -r ../  dest
   put -r ../. dest
   put -r ../.. dest
The first and second might come up from completion and/or a script; for the last (and similar) inputs we'd need more special-casing.
I guess this resolves to the question whether source path structures should be built in the destination (like -R for rsync says) or not.
   put -r ../../foo/.. dest
With foo being a symlink the intention might not be clear (which containing directory, of the symlink or its target?)
    
    
More information about the openssh-unix-dev
mailing list