Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why doesn't Java have a file copy?

Tags:

java

Why does Java not have a file copy method? This seems like such an obvious thing to have, and it saves people from writing things like this example.

like image 480
C. Ross Avatar asked Nov 27 '22 15:11

C. Ross


1 Answers

The Java API is missing more than just file copying. You might be interested in checking out the Apache Commons libraries. For example, the IO library's FileUtils provides file copying methods.

like image 109
Thomas Owens Avatar answered Dec 15 '22 18:12

Thomas Owens