Caller should free this array with [glib.global.strfreev] when done with it.
Mount.guessContentTypeSync
string[] guessContentTypeSync(bool forceRescan, gio.cancellable.Cancellable cancellable = null)Tries to guess the type of content stored on mount. Returns one or more textual identifiers of well-known content types (typically prefixed with "x-content/"), e.g. x-content/image-dcf for camera memory cards. See the
shared-mime-infospecification for more on x-content types.
This is a synchronous operation and as such may block doing IO; see [gio.mount.Mount.guessContentType] for the asynchronous version.
Parameters
forceRescan | Whether to force a rescan of the content. Otherwise a cached result will be used if available |
cancellable | optional #GCancellable object, null to ignore |
Returns
a null-terminated array of content types or null on error.
Throws
[ErrorWrap]