Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // directory will be dynamically generated.
- String directory = fileDirectory+ "//" + fileName;
- path = Paths.get(directory);
- if (Files.exists(path)) {
- Files.delete(path);
- }
- // hard-coded directory works perfectly.
- String directory = "C://opt//tomcat//webapps//resources//images//sprite.jpg";
Add Comment
Please, Sign In to add comment