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

Method markTemporaryFile

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

Perform cleanup of automatically unpacked native shared library.

(File file)

Source from the content-addressed store, hash-verified

1373 /** Perform cleanup of automatically unpacked native shared library.
1374 */
1375 static void markTemporaryFile(File file) {
1376 // If we can't force an unload/delete, flag the file for later
1377 // deletion
1378 try {
1379 File marker = new File(file.getParentFile(), file.getName() + ".x");
1380 marker.createNewFile();
1381 }
1382 catch(IOException e) { e.printStackTrace(); }
1383 }
1384
1385 /** Obtain a directory suitable for writing JNA-specific temporary files.
1386 Override with <code>jna.tmpdir</code>

Callers 2

testRemoveTemporariesMethod · 0.95
deleteLibraryMethod · 0.95

Calls 1

getNameMethod · 0.65

Tested by 1

testRemoveTemporariesMethod · 0.76