Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: SCP copy to a specific folder

$
0
0
Hi,

I just tested and actually in my case both tests:
scp.Upload(new DirectoryInfo(@"D:\test1"), "/AAA/oleg");
and
scp.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

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>