Get in script is deleting files unexpectly
I wrote the simple script below to download files from an SFTP server. While it downloaded the files successfully, it also deleted them from the server. Reading through the documentation, I thought that the files would only be deleted if I used the -delete argument in the get command. Please advise. Thanks!
# Connect
open sftp://user:password@site.com
# Change remote directory
cd /incoming
# Download file to the local directory d:\
get * c:\users\me\desktop\TestWinScp\
# Disconnect
close
exit
# Connect
open sftp://user:password@site.com
# Change remote directory
cd /incoming
# Download file to the local directory d:\
get * c:\users\me\desktop\TestWinScp\
# Disconnect
close
exit