Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

gMountGuessContentTypeSync

gMountGuessContentTypeSync


Description

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-info (http://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec) specification for more on x-content types.

Usage

gMountGuessContentTypeSync(object, force.rescan, cancellable = NULL, 
    .errwarn = TRUE)

Arguments

object

a GMount

force.rescan

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

cancellable

optional GCancellable object, NULL to ignore

.errwarn

Whether to issue a warning on error or fail silently

Details

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

Value

A list containing the following elements:

retval

[character] a list of content types or NULL on error.

error

a GError location to store the error occuring, or NULL to ignore

Author(s)

Derived by RGtkGen from GTK+ documentation


RGtk2

R Bindings for Gtk 2.8.0 and Above

v2.20.36
GPL
Authors
Michael Lawrence <michafla@gene.com> and Duncan Temple Lang <duncan@wald.ucdavis.edu>
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.