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
But may be yo could help me with getting basename of file in this construction (filename without extension).
foreach ($fileinfo in $files)
{
$session.GetFiles(
($remotePath + $fileName),
($localPath + $fileName)).Check()
}