Gio.File.prototype.equal

function equal(file2: Gio.File): Boolean {
    // Gjs wrapper for g_file_equal()
}
  

Checks equality of two given #GFiles.

Note that two #GFiles that differ can still refer to the same file on the filesystem due to various forms of filename aliasing.

This call does no blocking I/O.

file2

the second Gio.File

Returns

true if file1 and file2 are equal. false if either is not a Gio.File.