Gio.File.prototype.hash
function hash(): Number(guint) { // Gjs wrapper for g_file_hash() }
Creates a hash value for a Gio.File.
This call does no blocking I/O.
- Returns
0 if file is not a valid Gio.File, otherwise an integer that can be used as hash value for the Gio.File. This function is intended for easily hashing a Gio.File to add to a GLib.HashTable or similar data structure.