Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.3k views
in Java FTP by (160 points)
Hi

If I use rmdir(remoteDir, true) or mdelete(remotedir,wildcard,true) with a folder doesn't have any subfolders throws exception. If I use false, it will work. But I would like to use the same command to delete the seleted folders whether it has subfolders or not.

and also could anyone direct me to write a code to achieve Copy & Move operation.

Please advise.

Thanks
Raja V

1 Answer

0 votes
by (162k points)
Copy & Move isn't supported in the FTP protocol. You can achieve it by using mget() to get the directory to a local temp area, and mput() to put this directory into a new directory on the FTP server.

Hi

If I use rmdir(remoteDir, true) or mdelete(remotedir,wildcard,true) with a folder doesn't have any subfolders throws exception. If I use false, it will work. But I would like to use the same command to delete the seleted folders whether it has subfolders or not.

and also could anyone direct me to write a code to achieve Copy & Move operation.

Please advise.

Thanks
Raja V

Categories

...