Re: How to set "Remote directory" when using C# / .dll for Amazon S3 connection?
This issue has been added to the tracker:
https://winscp.net/tracker/1778
https://winscp.net/tracker/1778
session.AddRawSettings("RemoteDirectory", "/bucket");
You will not see buckets that were shared with you by another AWS user, in the root listing. To access such buckets, you have to specify /bucketname as an initial Remote directory, when setting up your S3 session. Similarly, when your access key does not have permissions to list buckets, you will need to specify the path to the desired bucket the same way. In scripting, you do that by appending the path to the bucket to a session URL: s3://accesskey:secretkey@s3.amazonaws.com/bucket/.