2 ms·
Of course you could. It was an awful api: http://docs.oracle.com/javase/6/docs/api/java/io/File.html http://docs.oracle.com/javase/6/docs/api/java/io/File.html
by DanielRibeiro 15y ago
Of course you could. It was an awful api: http://docs.oracle.com/javase/6/docs/api/java/io/File.html http://docs.oracle.com/javase/6/docs/api/java/io/File.html
This is why people used Apache FileUtils: http://commons.apache.org/io/apidocs/org/apache/commons/io/FileUtils.html http://commons.apache.org/io/apidocs/org/apache/commons/io/F...
On java 7 a better api is only part of the standard library.
- afsina 15y agoNo it could not copy directly until Java7. Sure there was a million helper class could do this. but not the main SDK.