How to get files from hidden folder using PowerShell script.

Advertisement

sasticgopi
Joined:
Posts:
1
Location:
India

How to get files from hidden folder using PowerShell script.

How to get files from hidden folder using PowerShell script.
$Source = "/home/.Archive/"
$Directory = $session.ListDirectory($Source)
Above code getting error if folder contains "dot" in prefix.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,262
Location:
Prague, Czechia

Re: How to get files from hidden folder using PowerShell script.

Is the folder even available via the protocol you are using?
Can you access it in WinSCP GUI or any other client (using the same protocol)?

Reply with quote

Advertisement

You can post new topics in this forum