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
public
const
string
DIR_SEPARATOR_S
public
const
char
SEARCHPATH_SEPARATOR
public
const
string
SEARCHPATH_SEPARATOR_S
Methods:
public
string
build_filename
(
string
first_element, ...)
Creates a filename from a series of elements using the correct separator for the current platform.
public
string
build_filename_valist
(
string
first_element,
va_list
args)
Creates a filename from a list of elements using the correct separator for the current platform.
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.