Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.7k views
in Java FTP by (160 points)
can the method void delete(java.lang.String fileName) in FTPClient delete an empty directory?

2 Answers

0 votes
by (160 points)
when I use this method to delete a file ,it works

when I user this method to delete an empty directory,it always says "No such file or directory."
0 votes
by (162k points)
To delete a directory use rmdir()

Categories

...