c# - Delete folder on ftp -
hi want delete folder on ftp
tried this:
webrequest request = webrequest.create(strpath); request.method = webrequestmethods.ftp.removedirectory; request.credentials = new networkcredential(struusername,strupassword); using (var resp = (ftpwebresponse)request.getresponse()) { console.writeline(resp.statuscode); }
webexception unhandled. (550)file not available
strpath = ftp://192....../media
in media other folders music, video ,....
why doesn't work?
i've gotten error.
try adding forward slash end of media like:
strpath = ftp://192....../media/
still might agree comments, might need empty folder first.
Comments
Post a Comment