File system paths

File system paths — helper functions for dealing with file system paths.

Functions

gchar * gx_path_resolve ()

Description

Helper functions for making dealing with filenames and pathnames a bit more convenient.

Functions

gx_path_resolve ()

gchar *
gx_path_resolve (const gchar *file_name);

Perform shell-like expansion on file_name , and resolve relative paths. The latter only works for existing files. Wrapper around the library functions realpath() and wordexp() (where available). If there are multiple expansions, we pick the first one.

Parameters

file_name

a filename

 

Returns

the expanded/resolved path; free with g_free().

[transfer full]

Types and Values