eshion / vim-sync

Automatic sync SFTP,FTP,... for buffers in vim
67 stars 22 forks source link

rsync uploading a file to a folder that not existed on the server. #16

Open Mrzrb opened 5 years ago

Mrzrb commented 5 years ago

I found that something got wrong when uploading a file to a folder that not existed on the server. just change

rsync -azcuv -e "/bin/ssh -p36000 -q" `dirname $0`/$2/$3 login_name@remote_host:/remote_path/$2/$3

to

rsync -azcuv -e "/bin/ssh -p36000 -q" `dirname $0`/$2/$3 login_name@remote_host:/remote_path/$2/

can work better~