GLib.Path – glib-2.0 Reference Manual
Packages
glib-2.0
GLib
Path
DIR_SEPARATOR
DIR_SEPARATOR_S
SEARCHPATH_SEPARATOR
SEARCHPATH_SEPARATOR_S
build_filename
build_path
get_basename
get_dirname
is_absolute
is_dir_separator
skip_root
GLib.Path
Description:
Content:
Constants:
public
const
char
DIR_SEPARATOR
The directory separator character.
public
const
unowned
string
DIR_SEPARATOR_S
The directory separator as a string.
public
const
char
SEARCHPATH_SEPARATOR
The search path separator character.
public
const
unowned
string
SEARCHPATH_SEPARATOR_S
The search path separator as a string.
Functions:
public
bool
is_absolute
(
string
file_name)
Returns
true
if the given
file_name
is an absolute file name.
public
unowned
string
skip_root
(
string
file_name)
Returns a pointer into
file_name
after the root component, i.
public
string
get_basename
(
string
file_name)
Gets the last component of the filename.
public
string
get_dirname
(
string
file_name)
Gets the directory components of a file name.
public
string
build_filename
(
string
first_element, ...)
Creates a filename from a series of elements using the correct separator for filenames.
public
string
build_path
(
string
separator,
string
first_element, ...)
Creates a path from a series of elements using
separator
as the separator between elements.
public
bool
is_dir_separator
(
unichar
c)