Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- files.stream().forEach(f -> {
- if (!f.exists()) {
- if (f.isDirectory()) {
- f.mkdir();
- } else {
- try {
- f.createNewFile();
- } catch (IOException e) {
- e.printStackTrace();
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement