MCPcopy Index your code
hub / github.com/java-native-access/jna / deleteLibrary

Method deleteLibrary

src/com/sun/jna/Native.java:365–374  ·  view source on GitHub ↗

Remove any automatically unpacked native library. This will fail on windows, which disallows removal of any file that is still in use, so an alternative is required in that case. Mark the file that could not be deleted, and attempt to delete any temporaries on next

(File lib)

Source from the content-addressed store, hash-verified

363 (e.g. Memory) which may still need use of the library before shutdown.
364 */
365 static boolean deleteLibrary(File lib) {
366 if (lib.delete()) {
367 return true;
368 }
369
370 // Couldn't delete it, mark for later deletion
371 markTemporaryFile(lib);
372
373 return false;
374 }
375
376 private Native() { }
377

Callers 2

loadLibraryMethod · 0.95

Calls 2

markTemporaryFileMethod · 0.95
deleteMethod · 0.45

Tested by

no test coverage detected