I can not delete file. - WeOnlyDo Discussion board

I can not delete file. (wodSFTP / wodSFTP.NET / wodSFTPdll)

by warayuth, Thursday, February 08, 2007, 10:45 (6310 days ago)

I'm using C#.net 2005 trying to delete file on server.

unfortunately I can not find any example on you sample solution.

can anyone give me an sample.
here is my statement that's not working.

after connected.
imsiFTP.DeleteFile( /export/home/share/vscp/sendIMSI/aaz.txt );
or
imsiFTP.DeleteFile( aaz.txt );
can anyone give me some C# sample.

warayuth

Re: I can not delete file.

by wodDamir, Thursday, February 08, 2007, 11:15 (6310 days ago) @ warayuth

Hi warayuth,

Do you reeive any kind of error?

I just tried this:

sftp1.DeleteFile( /home/user/testfile.txt );

and it worked perfectly, the file was deleted. Maybe this is permission problem?

Regards,
Damba

Re: I can not delete file.

by warayuth, Thursday, February 08, 2007, 11:25 (6310 days ago) @ wodDamir

thanks for the support I've fixed the problem