Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Download only correct files from FTP to local folder

But may be yo could help me with getting basename of file in this construction (filename without extension).

See https://stackoverflow.com/q/12503871/850848
Guest

Re: Download only correct files from FTP to local folder

[quote="Pavel"]Hello colleagues,

Could you please help me with change this wonderful script: https://beta.winscp.net/eng/docs/library_example_delete_after_successful_download

We have special .DONE file on our FTP for each main file. This file created as flag when main file uploaded to FTP.
For example, typical structure of our FTP:
1.txt
1.txt.DONE
2.zip
2.zip.DONE
etc

I need download main file from FTP using this script only if .DONE file exist.

Many thanks for you help.[/quote]
Pavel

Hi Martin,

Already found solution. I used string like "[System.IO.Path]::GetFileNameWithoutExtension($OKfile)"

Thank you :)
Guest

Re: Download only correct files from FTP to local folder