Hi,
I just tested and actually in my case both tests:
From what I was checking with unix sys admin is that some unix implementation differentiate if target has a trailing slash or not.
On my test machine it looks like it doesn't matter but on some it appears it does, since what I heard is that this is expected behavior.
So I guess in this case its probably not a bug but server specific implementation behavior.
I would suggest to try out different OS systems to see what would be the difference in behavior if any.
Also, to test you server behavior I would use command line SCP utility and see how it behaves and let me know if its different from library behavior.
Hope it helps,
Thanks,
Oleg
I just tested and actually in my case both tests:
scp.Upload(new DirectoryInfo(@"D:\test1"), "/AAA/oleg");
andscp.Upload(new DirectoryInfo(@"D:\test1"), "/AAA/oleg/");
In those both cases it uploaded into the same folder /AAA/oleg.From what I was checking with unix sys admin is that some unix implementation differentiate if target has a trailing slash or not.
On my test machine it looks like it doesn't matter but on some it appears it does, since what I heard is that this is expected behavior.
So I guess in this case its probably not a bug but server specific implementation behavior.
I would suggest to try out different OS systems to see what would be the difference in behavior if any.
Also, to test you server behavior I would use command line SCP utility and see how it behaves and let me know if its different from library behavior.
Hope it helps,
Thanks,
Oleg