guess_content_type_sync


Description:

public abstract string[] guess_content_type_sync (bool force_rescan, Cancellable? cancellable = null) throws Error

Tries to guess the type of content stored on this.

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-info specification for more on x-content types.

This is an synchronous operation and as such may block doing IO; see guess_content_type for the asynchronous version.

Parameters:

this

a Mount

force_rescan

Whether to force a rescan of the content. Otherwise a cached result will be used if available

cancellable

optional Cancellable object, null to ignore

Returns:

a null-terminated array of content types or null on error. Caller should free this array with strfreev when done with it.