Re: Listing files matching wildcard
i have a list of files that i need to download. filex*.dar ,fileb*.dar,filec*.dar etc and i would like each filename that is downloaded recorded. i have been able to get all the files downloaded but cant seem to do it to where it lists the actual filename being downloaded. only the wildcard name.
Then it does not look like you needEnumerateRemoteFiles
at all.
UseGetFiles
, which supports multiple masks viaTransferOptions.FileMask
.
https://winscp.net/eng/docs/library_transferoptions#filemask
To log the downloaded files, iterateTransferOperationResult.Transfers
.
See https://winscp.net/eng/docs/library_session_getfiles
If you want to log the files, as they are downloaded already, handleSession.FileTransferred
event:
https://winscp.net/eng/docs/library_session_filetransferred
thanks i will see if i can get it to work with those .