Files being skipped during upload

Advertisement

Guest

Files being skipped during upload

Hi,

I'm having issues where some files are being skipped in an upload to an FTP server. I've attached the script and log file and I'd be very grateful if anyone can give me a clue as to why the files are being skipped. Once skipped, it seems that they are deleted as they never get selected in a subsequent upload.

I am uploading XML and PDF files in two separate uploads from the same folder to a separate folder for each on the ftp site (I hope that makes sense). Could that be the issue? Would I be better off putting the XML and PDF files in separate folders for upload to the ftp site?

I'm using WinSCP v5.15.9 running on an Azure server Windows Server 2016 Datacenter.

I'd be grateful for any pointers on this.

Thanks,

Gary.

Reply with quote

Advertisement

garyn
Joined:
Posts:
3
Location:
Sydney, Aus

Hi,

Yes, 1097_1.pdf was one of them. I can see it was skipped during the xml upload due to the filter. However, as it was not picked up during the pdf upload, I'm wondering if it's a timing thing and whether that particular file was dropped into the folder after the pdf upload command had finished and then WinSCP deleted it once the whole batch had finished. Is that possible?

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

garyn wrote:

I'm wondering if it's a timing thing and whether that particular file was dropped into the folder after the pdf upload command had finished
That's possible.

and then WinSCP deleted it once the whole batch had finished.
But this is not possible. The put -delete deletes only the files that are successfully uploaded. And the deleting happens as part of the put command, not "once the whole batch had finished".

Reply with quote

garyn
Joined:
Posts:
3
Location:
Sydney, Aus

Thanks. It's a bit odd. Do you have any ideas what might possibly cause files to disappear from the folder without being uploaded?
I'm wondering whether to put the pdf and xml files in separate folders and run two separate scripts - do you think that might help, or at least be a better way to do it?

Gary.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

garyn wrote:

Do you have any ideas what might possibly cause files to disappear from the folder without being uploaded?
No. But I'm sending you a development version of WinSCP, which logs the deletion of the local source files. Try to use it and post a log file once any file disappears again.

I'm wondering whether to put the pdf and xml files in separate folders and run two separate scripts - do you think that might help, or at least be a better way to do it?
I do not thing it is a better way and I do not thing it would make any difference.

Reply with quote

garyn
Joined:
Posts:
3
Location:
Sydney, Aus

Hi,

Thanks. I’ll give that a go when I’m back in the office in the new year and let you know how it goes.

Gary.

Reply with quote

Advertisement

You can post new topics in this forum