Ignore errors when downloading
Hi guys,
Sorry if i missed something but does anyone know how to ignore errors when downloading ?
I have to download multiple files but the operation failed beacause i don't have permissions to access some files.
So i'm looking for a "continue with next" option
I tried to set ContinueOnError or PreserveReadOnly
I also tried :
but the exception still raise and seem to be uncatchable.
Any ideas ?
(I'm using the last build with powershell)
Thanks
Sorry if i missed something but does anyone know how to ignore errors when downloading ?
I have to download multiple files but the operation failed beacause i don't have permissions to access some files.
So i'm looking for a "continue with next" option
I tried to set ContinueOnError or PreserveReadOnly
I also tried :
try { $transferResult = $Session.GetFiles($remotePath, $localPath, $false, $transferOptions) } catch {}
but the exception still raise and seem to be uncatchable.
Any ideas ?
(I'm using the last build with powershell)
Thanks