File: gFileGetBasename.Rd

package info (click to toggle)
rgtk2 2.20.36-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 33,540 kB
  • sloc: ansic: 137,163; makefile: 2; sh: 1
file content (21 lines) | stat: -rw-r--r-- 1,028 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
\alias{gFileGetBasename}
\name{gFileGetBasename}
\title{gFileGetBasename}
\description{Gets the base name (the last component of the path) for a given \code{\link{GFile}}.}
\usage{gFileGetBasename(object)}
\arguments{\item{\verb{object}}{input \code{\link{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 \code{G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME}
attribute with \code{\link{gFileQueryInfo}}.
  
This call does no blocking i/o.}
\value{[char] string containing the \code{\link{GFile}}'s base name, or \code{NULL}
if given \code{\link{GFile}} is invalid.}
\author{Derived by RGtkGen from GTK+ documentation}
\keyword{internal}