Gio.File.prototype.is_native
function is_native(): Boolean { // Gjs wrapper for g_file_is_native() }
Checks to see if a file is native to the platform.
A native file s one expressed in the platform-native filename format, e.g. "C:\Windows" or "/usr/bin/". This does not mean the file is local, as it might be on a locally mounted remote filesystem.
On some systems non-native files may be available using the native filesystem via a userspace filesystem (FUSE), in these cases this call will return false, but Gio.File.prototype.get_path will still return a native path.
This call does no blocking I/O.
- Returns
true if file is native