Basic Directory Operations

Basic Directory Operations — Creating and removing directories.

Functions

Description

Functions

gnome_vfs_make_directory ()

GnomeVFSResult
gnome_vfs_make_directory (const gchar *text_uri,
                          guint perm);

Create text_uri as a directory.

Parameters

text_uri

uri of the directory to be created.

 

perm

Unix-style permissions for the newly created directory

 

Returns

an integer representing the result of the operation.


gnome_vfs_make_directory_for_uri ()

GnomeVFSResult
gnome_vfs_make_directory_for_uri (GnomeVFSURI *uri,
                                  guint perm);

Create a directory at uri . Only succeeds if a file or directory does not already exist at uri .

Parameters

uri

uri of the directory to be created.

 

perm

Unix-style permissions for the newly created directory.

 

Returns

an integer representing the result of the operation.


gnome_vfs_remove_directory ()

GnomeVFSResult
gnome_vfs_remove_directory (const gchar *text_uri);

Remove text_uri . text_uri must be an empty directory.

Parameters

text_uri

path of the directory to be removed.

 

Returns

an integer representing the result of the operation.


gnome_vfs_remove_directory_from_uri ()

GnomeVFSResult
gnome_vfs_remove_directory_from_uri (GnomeVFSURI *uri);

Remove uri . uri must be an empty directory.

Parameters

uri

uri of the directory to be removed.

 

Returns

an integer representing the result of the operation.

Types and Values