GLib.Path – glib-2.0 Reference Manual
Path
Description:
public
namespace
Path
Namespace:
GLib.Path
Package:
glib-2.0
Content:
Constants:
public
const
char
DIR_SEPARATOR
The directory separator character.
public
const
string
DIR_SEPARATOR_S
The directory separator as a string.
public
const
char
SEARCHPATH_SEPARATOR
The search path separator character.
public
const
string
SEARCHPATH_SEPARATOR_S
The search path separator as a string.
Methods:
public
string
build_filename
(
string
first_element, ...)
Creates a filename from a series of elements using the correct separator for filenames.
public
string
build_filename_valist
(
string
first_element,
va_list
args)
Behaves exactly like
build_filename
, but takes the path elements as a va_list.
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
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
bool
is_absolute
(
string
file_name)
Returns
true
if the given
file_name
is an absolute file name.
public
bool
is_dir_separator
(
unichar
c)
public
unowned
string
skip_root
(
string
file_name)
Returns a pointer into
file_name
after the root component, i.
2022 vala-language.org