Can't get attributes of file

Advertisement

as1981
Joined:
Posts:
19

Can't get attributes of file

All,

I'm using the following code:

Set transferResult = scpsession.GetFiles(strDetailList(6), strDetailList(7), strDetailList(8), scptransferOptions)

strDetailList(6) = /feedback/ack/

I get the error mentioned in the subject. If I understand the documentation correctly the forward slash at the end should make it treat the path as a folder and not try to get file attributes for it? I've also tried adding *.* on the end.

If I specify a filename it works so the path is, in theory. valid.

Thanks

Andrew

Reply with quote

Advertisement

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

Re: Can't get attributes of file

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate log file, set Session.SessionLogPath. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

as1981
Joined:
Posts:
19

Hello,

Thank you for your help.

When I add that parameter it tells me that the object doesn't support this property or method. Can you help?

Thanks

Andrew

Reply with quote

as1981
Joined:
Posts:
19

Hello,

Sorry I had made a typing error in adding the log line.

For some reason it has started working. I will see if it works consistently.

Thanks for your help.

Andrew

Reply with quote

Advertisement

You can post new topics in this forum