Package: glib

Function g-current-dir

Lambda List

g-current-dir ()

Return Value

A string with the current directory.

Details

Gets the current directory.

The returned string should be freed when no longer needed. The encoding of the returned string is system defined. On Windows, it is always UTF-8.

Since GLib 2.40, this function will return the value of the "PWD" environment variable if it is set and it happens to be the same as the current directory. This can make a difference in the case that the current directory is the target of a symbolic link.
 

See also

2020-10-24