1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Basic Directory Operations</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.0"><meta name="generator" content="GTK-Doc V1.1 (XML mode)"><style type="text/css">
2 .synopsis, .classsynopsis {
4 border: solid 1px #aaaaaa;
9 border: solid 1px #aaaaff;
18 border: solid 1px #ffaaaa;
25 .navigation a:visited {
31 </style><link rel="home" href="index.html" title="GnomeVFS - Filesystem Abstraction library"><link rel="up" href="gnome-vfs-directory-operations.html" title="Directory Handling"><link rel="previous" href="gnome-vfs-directory-operations.html" title="Directory Handling"><link rel="next" href="gnome-vfs-20-gnome-vfs-directory-list-ops.html" title="Listing Directory Contents"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="gnome-vfs-directory-operations.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="gnome-vfs-directory-operations.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td><th width="100%" align="center">GnomeVFS - Filesystem Abstraction library</th><td><a accesskey="n" href="gnome-vfs-20-gnome-vfs-directory-list-ops.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td></tr></table><div class="refentry" lang="en"><a name="gnome-vfs-20-gnome-vfs-directory-basic-ops"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">Basic Directory Operations</span></h2><p>Basic Directory Operations —
32 Creating and removing directories.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
36 <a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-directory-basic-ops.html#gnome-vfs-make-directory">gnome_vfs_make_directory</a> (const <a
37 href="../glib/glib-Basic-Types.html#gchar"
40 href="../glib/glib-Basic-Types.html#guint"
42 <a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-directory-basic-ops.html#gnome-vfs-make-directory-for-uri">gnome_vfs_make_directory_for_uri</a>
45 href="../glib/glib-Basic-Types.html#guint"
47 <a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-directory-basic-ops.html#gnome-vfs-remove-directory">gnome_vfs_remove_directory</a> (const <a
48 href="../glib/glib-Basic-Types.html#gchar"
49 >gchar</a> *text_uri);
50 <a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-20-gnome-vfs-directory-basic-ops.html#gnome-vfs-remove-directory-from-uri">gnome_vfs_remove_directory_from_uri</a>
52 </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
54 </p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="gnome-vfs-make-directory"></a>gnome_vfs_make_directory ()</h3><a class="indexterm" name="id2885138"></a><pre class="programlisting"><a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_make_directory (const <a
55 href="../glib/glib-Basic-Types.html#gchar"
58 href="../glib/glib-Basic-Types.html#guint"
59 >guint</a> perm);</pre><p>
60 Create <i class="parameter"><tt>text_uri</tt></i> as a directory.</p><p>
62 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>text_uri</tt></i> :</span></td><td> URI of the directory to be created
63 </td></tr><tr><td><span class="term"><i class="parameter"><tt>perm</tt></i> :</span></td><td> Unix-style permissions for the newly created directory
64 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> An integer representing the result of the operation
65 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-make-directory-for-uri"></a>gnome_vfs_make_directory_for_uri ()</h3><a class="indexterm" name="id2885260"></a><pre class="programlisting"><a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_make_directory_for_uri
68 href="../glib/glib-Basic-Types.html#guint"
69 >guint</a> perm);</pre><p>
70 Create a directory at <i class="parameter"><tt>uri</tt></i>. Only succeeds if a file or directory
71 does not already exist at <i class="parameter"><tt>uri</tt></i>.</p><p>
73 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>uri</tt></i> :</span></td><td> URI of the directory to be created
74 </td></tr><tr><td><span class="term"><i class="parameter"><tt>perm</tt></i> :</span></td><td> Unix-style permissions for the newly created directory
75 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> An integer representing the result of the operation
76 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-remove-directory"></a>gnome_vfs_remove_directory ()</h3><a class="indexterm" name="id2885390"></a><pre class="programlisting"><a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_remove_directory (const <a
77 href="../glib/glib-Basic-Types.html#gchar"
78 >gchar</a> *text_uri);</pre><p>
79 Remove <i class="parameter"><tt>text_uri</tt></i>. <i class="parameter"><tt>text_uri</tt></i> must be an empty directory.</p><p>
81 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>text_uri</tt></i> :</span></td><td> URI of the directory to be removed
82 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> An integer representing the result of the operation
83 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-remove-directory-from-uri"></a>gnome_vfs_remove_directory_from_uri ()</h3><a class="indexterm" name="id2885492"></a><pre class="programlisting"><a href="gnome-vfs-20-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_remove_directory_from_uri
84 (GnomeVFSURI *uri);</pre><p>
85 Remove <i class="parameter"><tt>uri</tt></i>. <i class="parameter"><tt>uri</tt></i> must be an empty directory.</p><p>
87 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>uri</tt></i> :</span></td><td> URI of the directory to be removed
88 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> An integer representing the result of the operation
89 </td></tr></tbody></table></div></div></div></div><table class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="gnome-vfs-directory-operations.html"><b><< Directory Handling</b></a></td><td align="right"><a accesskey="n" href="gnome-vfs-20-gnome-vfs-directory-list-ops.html"><b>Listing Directory Contents >></b></a></td></tr></table></body></html>