getUriScheme

open fun getUriScheme(): String?

Gets the URI scheme for a #GFile. RFC 3986 decodes the scheme as: |[ URI = scheme ":" hier-part "#" 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.

Return

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 g_free() when no longer needed.