powershell filemask to include
Hi I'm trying, by I'm really uncertain of the syntax in powershell with WinSCP. I'm trying to use filemask to include only *.jpg filetypes with performing a synchronize remote. So option to be used -filemask = "*.jpg". Without the filemask, I and synchronize:remote so it is working. Help with the syntax?
$transferoptions.filemask="*.jpg"
$synchronizationResult = $session.SynchronizeDirectories(
[WinSCP.SynchronizationMode]::Remote, "localdirectorypath", "/destpath/", $False, $transferoptions)
$transferoptions.filemask="*.jpg"
$synchronizationResult = $session.SynchronizeDirectories(
[WinSCP.SynchronizationMode]::Remote, "localdirectorypath", "/destpath/", $False, $transferoptions)