File.getUriScheme

string getUriScheme()

Gets the URI scheme for a #GFile. RFC 3986 decodes the scheme as:

URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ]
Common schemes include "file", "http", "ftp", etc.

The scheme can be different from the one used to construct the #GFile, in that it might be replaced with one that is logically equivalent to the #GFile.

This call does no blocking I/O.

Returns

a string containing the URI scheme for the given

#GFile or null if the #GFile was constructed with an invalid URI. The returned string should be freed with [glib.global.gfree] when no longer needed.