Put delete Uploads file to wrong directory (root directory)

Advertisement

Hushham
Joined:
Posts:
7
Location:
Pakistan

Put delete Uploads file to wrong directory (root directory)

Hi support team,

I am using below command, It should first synchronize the remote directory and then delete all files from local.
The issue is that it uploads file at 2 locations (I have mentioned one folder only).
It uploads in mentioned folder as well as the root.

Commands are
synchronize remote -filemask=*.csv C:\Users\hash\Desktop\BI\ /ZTEFSD/
put -delete C:\Users\hash\Desktop\BI\*.*

logfile is attached.

Thanks
  • logfile_Upload.log (36.2 KB, Private file)

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Put delete Uploads file to wrong directory (root directory)

Hushham wrote:

The issue is that it uploads file at 2 locations (I have mentioned one folder only).
It uploads in mentioned folder as well as the root.
Your put command upload the files to the current working directory (what is probably the root directory that you refer to).
If you want to delete the local files, use del Windows command (not WinSCP command).

Though you better check this FAQ:
https://winscp.net/eng/docs/faq_delete_synchronized_files

Reply with quote

Advertisement

You can post new topics in this forum