Topic "Can't get attributes of file"

Author Message
as1981
[View user's profile]

Joined: 2015-04-18
Posts: 16
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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
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.
as1981
[View user's profile]

Joined: 2015-04-18
Posts: 16
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
as1981
[View user's profile]

Joined: 2015-04-18
Posts: 16
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License