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

gFileGetBasename

gFileGetBasename


Description

Gets the base name (the last component of the path) for a given GFile.

Usage

gFileGetBasename(object)

Arguments

object

input GFile.

Details

If called for the top level of a system (such as the filesystem root or a uri like sftp://host/) it will return a single directory separator (and on Windows, possibly a drive letter).

The base name is a byte string (*not* UTF-8). It has no defined encoding or rules other than it may not contain zero bytes. If you want to use filenames in a user interface you should use the display name that you can get by requesting the G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME attribute with gFileQueryInfo.

This call does no blocking i/o.

Value

[char] string containing the GFile's base name, or NULL if given GFile is invalid.

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.