Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. for (String nativeFile : nativeFiles) {
  2. InputStream inputStream = IOHelper.class.getResourceAsStream("/" + nativeFile);
  3. Path nativePath = dataDir.resolve(nativeFile);
  4.  
  5. if (Files.notExists(nativePath)) {
  6. Files.createDirectories(nativePath.getParent());
  7. Files.copy(inputStream, nativePath);
  8. }
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement