Advertisement
notjacob

file setup

Jan 30th, 2020
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.23 KB | None | 0 0
  1.         files.stream().forEach(f -> {
  2.             if (!f.exists()) {
  3.                 if (f.isDirectory()) {
  4.                     f.mkdir();
  5.                 } else {
  6.                     try {
  7.                         f.createNewFile();
  8.                     } catch (IOException e) {
  9.                         e.printStackTrace();
  10.                     }
  11.                 }
  12.             }
  13.         });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement