DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38293>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38293 Summary: [net] Cannot delete ftp server file using delteFile(pathtofile) Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Net AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] Error returned: ******************************************************************************* java.lang.NullPointerException at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:441) at org.apache.commons.net.ftp.FTP.sendCommand(FTP.java:520) at org.apache.commons.net.ftp.FTP.dele(FTP.java:1192) at org.apache.commons.net.ftp.FTPClient.deleteFile(FTPClient.java:1750) ******************************************************************************* Code being used: FTPClient.deleteFile(pathtofile) The pathtofile variable has been tried/failed with all of the following: a) filename b) printWorkingDirectory() + "/" + filename c) "ftp.site.com" + printWorkingDirectory() + "/" + filename d) "ftp://ftp.site.com" + printWorkingDirectory() + "/" + filename e) "ftp://user:[EMAIL PROTECTED]" + printWorkingDirectory() + "/" + filename Any ideas why I cannot programmatically delete a file off the server. I can delete any file I choose to using the FileZilla FTP Client application. Thanks for the help, Kevin -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
