Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

will.waterston@gmail.com

How to modify the directory listing in .NET assembly

In relation to my previous post:
Testing for remote directory existence before copying files

It appears that my directory listing format cannot be parsed. I have seen several posts where the suggested solution is to modify the ls command using sed to produce a format that will be parsed correctly, but I cannot see how to do this in .NET. Can someone point me in the direction of the doco or an example of how to do this?

I've found some pages on this subject such as Converting Script to Code Based on .NET Assembly
however I can't see how to actually do the mapping. I'm assuming that you create a custom command string that is run in place of the ls command; I should be able to make a script but how is the mapping done?

Mote - I cannot use SFTP as the server only supports SCP.

Thanks.