3 ms·
Wait, you couldn't copy or move files with Java until now? Are there really no java applications that move or copy files?
by RandallBrown 15y ago
Wait, you couldn't copy or move files with Java until now? Are there really no java applications that move or copy files?
- DanielRibeiro 15y agoOf 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.