Posh-SSH
Posh-SSH copied to clipboard
Get-SFTPItem doesn't preserve last write times of downloaded files
The lastwritetime and other timestamps on local copies of downloaded files reflect the time of download rather than the original timestamps on the remote files. Preserving the original timestamps would be helpful for analyzing file recency. That information is available from Get-SFTPPathAttribute.