Open SCP002 opened 1 week ago
as designs, the method for a session used is listdirectory(
Thanks for your reply. Understood, it works as intended. Maybe we could have -Name parameter back to be able to to get info about specific file, so we dont have to use:
Get-SFTPChildItem -SessionId $sess.SessionId -Path '/path/to/dir' | Where-Object -Property 'Name' -Like 'the-name-i-want'
Anyway you can close this issue as completed :)
In v3.2.4, Get-SFTPChildItem no longer has -Name parameter and seems like we are supposed to specify file name in -Parh parameter. However, if you run, for example:
It will respond with:
Such file definitely exist and in v3.2.3, if you pass file name with -Name parameter, it returns info about that file.
Note: If you add asterisk in the end of the file name like that:
everything will work, but it's inconvenient.