A wrapper for the POSIX access() function. This function is used to test a pathname for one or several of read, write or execute permissions, or just existence.
A wrapper for the POSIX chdir() function. The function changes the current directory of the process to path.
This wraps the close() call; in case of error, errno will be preserved, but the error will also be stored as a GError in error.
Gets a GFileError constant based on the passed-in err_no. For example, if you pass in EEXIST this function returns G_FILE_ERROR_EXIST Unlike errno values, you can portably assume that all GFileError values will exist.
Reads an entire file into allocated memory, with good error checking.
Opens a file for writing in the preferred directory for temporary files (as returned by g_get_tmp_dir()).
Reads the contents of the symbolic link filename like the POSIX readlink() function. The returned string is in the encoding used for filenames. Use g_filename_to_utf8() to convert it to UTF-8.
Writes all of contents to a file named filename, with good error checking. If a file called filename already exists it will be overwritten.
Returns TRUE if any of the tests in the bitfield test are TRUE. For example, (G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR) will return TRUE if the file exists; the check whether it's a directory doesn't matter since the existence test is TRUE. With the current set of available tests, there's no point passing in more than one test at a time.
Create a directory if it doesn't already exist. Create intermediate parent directories as needed, too.
Creates a temporary directory. See the mkdtemp() documentation on most UNIX-like systems.
Creates a temporary directory. See the mkdtemp() documentation on most UNIX-like systems.
Opens a temporary file. See the mkstemp() documentation on most UNIX-like systems.
Opens a temporary file. See the mkstemp() documentation on most UNIX-like systems.
A wrapper for the POSIX rmdir() function. The rmdir() function deletes a directory from the filesystem.
A wrapper for the POSIX unlink() function. The unlink() function deletes a name from the filesystem. If this was the last link to the file and no processes have it opened, the diskspace occupied by the file is freed.