LastWriteTime of directory
Hey there,
I want to select all remote subfolders with a specific
This does not work. Any idea on how to make this work?
I want to select all remote subfolders with a specific
LastWriteTime
, in this case later than yesterday. I don't want to select the files in the folders, just the folder itself.
$mask = "*>=yesterday" $files = $session.EnumerateRemoteFiles( $remotePath, $mask, [WinSCP.EnumerationOptions]::MatchDirectories) | Select-Object -ExpandProperty FullName echo $files