File and Folder Operations in java
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sanjay_sahni
Posted On:   Tuesday, September 18, 2001 02:04 AM

I have to provide a functionality of moving a folder,present on the server, with its content(sub folders and files) to a new path/destination on the same server.How can we achieve that thriugh java?

Re: File and Folder Operations in java

Posted By:   John_Zukowski  
Posted On:   Tuesday, September 18, 2001 08:35 AM

As long as you stay on the same physical drive, the renameTo() method works for moving/renaming folders. Everything in the folder naturally follows. If you're not on the same device though, you're basically on your own for moving the individual files.
About | Sitemap | Contact