set_current_dir


Description:

[ Version ( since = "2.8" ) ]
[ CCode ( cname = "g_chdir" ) ]
public int set_current_dir (string path)

A wrapper for the POSIX chdir function.

The function changes the current directory of the process to path.

See your C library manual for more details about chdir.

Parameters:

path

a pathname in the GLib file name encoding (UTF-8 on Windows)

Returns:

0 on success, -1 if an error occurred.


Namespace: GLib.Environment
Package: glib-2.0