code: public void copyLibraryFromPackage(String libraryName) throws IOException {
          Path ardDir = getArduinoDirectory().orElseThrow(IOException::new);
          Path source = Paths.get(embeddedDirectory).resolve(libraryName);
  
          Path dest = ardDir.resolve("libraries/" + libraryName);
          if(!Files.exists(dest)) {
              Files.createDirectory(dest);
          }
  
          Path gitRepoDir = dest.resolve(".git");
          if(Files.exists(gitRepoDir)) {
              throw new IOException("Git repository inside " + libraryName+ "! Not proceeding to update path : " + dest);
          }
  
          copyLibraryRecursive(source, dest);
      }
docs: Copies the library from the packaged version into the installation directory.
  @param libraryName the library to copy
  @throws IOException if the copy could not complete.