Guest User

Untitled

a guest
May 23rd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // directory will be dynamically generated.
  2. String directory = fileDirectory+ "//" + fileName;
  3. path = Paths.get(directory);
  4. if (Files.exists(path)) {
  5. Files.delete(path);
  6. }
  7.  
  8. // hard-coded directory works perfectly.
  9. String directory = "C://opt//tomcat//webapps//resources//images//sprite.jpg";
Add Comment
Please, Sign In to add comment