Session.ListDirectory error list

Advertisement

as1981
Joined:
Posts:
19

Session.ListDirectory error list

All,

If I want to capture any failures in a putfiles operation I use the following:

Set transferResult = scpsession.PutFiles(parameters)


Log "Failure count " & transferResult.failures.Count

I'm trying to capture the equivalent for session.listdirectory. The only

The only property of the RemoteDirectoryInfo class I can see is remotefileinfocollection.

Can I capture the amount of errors without using 'try/exception' functionality which isn't available in the language I'm using.

Thanks

Reply with quote

Advertisement

as1981
Joined:
Posts:
19

Hello,

Thank you for your reply.

Unfortunately I'm still needing to use VB6.

If an exception is created and there is no error handling will it cause the program to stop or will it continue?

If it continues then that's actually OK for me. The program will retry the directory listing every few minutes anyway and if it doesn't get a listing one time but gets one the next it is OK. My main concern is that the program doesn't stop.

Thanks

Andrew

Reply with quote

Advertisement

You can post new topics in this forum