Gio.File.prototype.has_uri_scheme

function has_uri_scheme(uri_scheme: String): Boolean {
    // Gjs wrapper for g_file_has_uri_scheme()
}
  

Checks to see if a Gio.File has a given URI scheme.

This call does no blocking I/O.

uri_scheme

a string containing a URI scheme

Returns

true if Gio.File's backend supports the given URI scheme, false if URI scheme is null, not supported, or Gio.File is invalid.