Next: , Previous: Getting and Setting File Information, Up: Top


9 Basic Directory Operations

Creating and removing directories.

9.1 Overview

9.2 Usage

— Function: gnome-vfs-make-directory (text_uri mchars) (perm unsigned-int) ⇒  (ret <gnome-vfs-result>)

Create text-uri as a directory.

text-uri
uri of the directory to be created.
perm
Unix-style permissions for the newly created directory
ret
an integer representing the result of the operation.
— Function: gnome-vfs-make-directory-for-uri (uri <gnome-vfsuri>) (perm unsigned-int) ⇒  (ret <gnome-vfs-result>)

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

uri
uri of the directory to be created.
perm
Unix-style permissions for the newly created directory.
ret
an integer representing the result of the operation.
— Function: gnome-vfs-remove-directory (text_uri mchars) ⇒  (ret <gnome-vfs-result>)

Remove text-uri. text-uri must be an empty directory.

text-uri
path of the directory to be removed.
ret
an integer representing the result of the operation.
— Function: gnome-vfs-remove-directory-from-uri (uri <gnome-vfsuri>) ⇒  (ret <gnome-vfs-result>)

Remove uri. uri must be an empty directory.

uri
uri of the directory to be removed.
ret
an integer representing the result of the operation.