How to Get dateCreated of File ?
Hi, I'm trying to filter files created today but I didn't find any method in RemoteFileInfo to et date created ?
Any idea how can I get date created of file ?
# Connect
$session.Open($sessionOptions)
Write-Host "Session Connected"
# Download files
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$directory = $session.ListDirectory("/")
foreach ($fileInfo in $directory.Files)
{
// How to get date created of file ????
}
Any idea how can I get date created of file ?
# Connect
$session.Open($sessionOptions)
Write-Host "Session Connected"
# Download files
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions.TransferMode = [WinSCP.TransferMode]::Binary
$directory = $session.ListDirectory("/")
foreach ($fileInfo in $directory.Files)
{
// How to get date created of file ????
}