exists

external fun exists(pathArray: Array<Any>): Int

Native JNI method that checks for file existence using C/C++ code.

This method is implemented in the native "tool-file" library and performs low-level file system checks that may be harder to detect or bypass than Java-based file operations.

Return

Number of files found, or 0 if none exist

Parameters

pathArray

Array of file paths to check for existence

Throws

if the native library is not properly linked