Isn´t there the StandardCopyOption.REPLACE_EXISTING missing in this line:
Files.move(p1, p2, StandardCopyOption.ATOMIC_MOVE);
Because with the current code, p2 already exists and will always throw an exception, right?
About Question enthuware.ocpjp.ii.v11.2.1805 :
Moderator: admin
-
- Posts: 6
- Joined: Mon Mar 24, 2014 5:35 pm
- Contact:
-
- Site Admin
- Posts: 10036
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocpjp.ii.v11.2.1805 :
Not exactly. That's what the point 2 in the explanation explains.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 60 guests