We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
copyDir (Read 554 times)
copyDir
Jul 16th, 2009, 2:46am
 
Hello how to use copyDir function I want to copy a folder from one place to another.

Any help?
Re: copyDir
Reply #1 - Jul 16th, 2009, 3:33am
 
Which copyDir function I don't see one in Processing reference nor in Java's File ref.

There is a copyTo function, but it is part of the Path class which belongs to NIO2, the new new I/O filesystem handling package that will come only with Java 7...

Indeed, in previous versions, copying a file was a pain, as we have to move bytes... You can see an example in How to copy a directory from one location to another location Java Tip.
Re: copyDir
Reply #2 - Jul 16th, 2009, 4:11am
 
Thanks for the help!!!!!
Page Index Toggle Pages: 1