Re: using .NetAssembly to remove folder
Because that's not a valid PowerShell code. It looks more like C#, but it's not valid C# either.
Also with
It should be like:
(assuming you have
Also with
Session.RemoveFile
, do not use RemotePath.EscapeFileMask
.
It should be like:
$session.RemoveFile("/folder/$timestamp")
(assuming you have
$session
variable with an instance of Session
class)