ftp://ftp.redhat.com/pub/redhat/linux/rawhide/SRPMS/SRPMS/gnome-vfs2-2.3.8-1.src.rpm
[gnome-vfs-httpcaptive.git] / doc / html / gnome-vfs-gnome-vfs-directory-basic-ops.html
1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>
2 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">
3         .synopsis, .classsynopsis {
4             background: #eeeeee;
5             border: solid 1px #aaaaaa;
6             padding: 0.5em;
7         }
8         .programlisting {
9             background: #eeeeff;
10             border: solid 1px #aaaaff;
11             padding: 0.5em;
12         }
13         .variablelist {
14             padding: 4px;
15             margin-left: 3em;
16         }
17         .navigation {
18             background: #ffeeee;
19             border: solid 1px #ffaaaa;
20             margin-top: 0.5em;
21             margin-bottom: 0.5em;
22         }
23         .navigation a {
24             color: #770000;
25         }
26         .navigation a:visited {
27             color: #550000;
28         }
29         .navigation .title {
30             font-size: 200%;
31         }
32       </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-gnome-vfs-directory-list-ops.html" title="
33 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-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-gnome-vfs-directory-basic-ops"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">
34 Basic Directory Operations</span></h2><p>
35 Basic Directory Operations &#8212; 
36 Creating and removing directories.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
37
38
39
40 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-directory-basic-ops.html#gnome-vfs-make-directory">gnome_vfs_make_directory</a>     (const <a
41 href="../glib/glib-Basic-Types.html#gchar"
42 >gchar</a> *text_uri,
43                                              <a
44 href="../glib/glib-Basic-Types.html#guint"
45 >guint</a> perm);
46 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-directory-basic-ops.html#gnome-vfs-make-directory-for-uri">gnome_vfs_make_directory_for_uri</a>
47                                             (GnomeVFSURI *uri,
48                                              <a
49 href="../glib/glib-Basic-Types.html#guint"
50 >guint</a> perm);
51 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-directory-basic-ops.html#gnome-vfs-remove-directory">gnome_vfs_remove_directory</a>   (const <a
52 href="../glib/glib-Basic-Types.html#gchar"
53 >gchar</a> *text_uri);
54 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-directory-basic-ops.html#gnome-vfs-remove-directory-from-uri">gnome_vfs_remove_directory_from_uri</a>
55                                             (GnomeVFSURI *uri);
56 </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
57
58 </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><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_make_directory     (const <a
59 href="../glib/glib-Basic-Types.html#gchar"
60 >gchar</a> *text_uri,
61                                              <a
62 href="../glib/glib-Basic-Types.html#guint"
63 >guint</a> perm);</pre><p>
64 Create <i class="parameter"><tt>text_uri</tt></i> as a directory.</p><p>
65
66 </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
67 </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
68 </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
69 </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><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_make_directory_for_uri
70                                             (GnomeVFSURI *uri,
71                                              <a
72 href="../glib/glib-Basic-Types.html#guint"
73 >guint</a> perm);</pre><p>
74 Create a directory at <i class="parameter"><tt>uri</tt></i>. Only succeeds if a file or directory
75 does not already exist at <i class="parameter"><tt>uri</tt></i>.</p><p>
76
77 </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
78 </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
79 </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
80 </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><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_remove_directory   (const <a
81 href="../glib/glib-Basic-Types.html#gchar"
82 >gchar</a> *text_uri);</pre><p>
83 Remove <i class="parameter"><tt>text_uri</tt></i>.  <i class="parameter"><tt>text_uri</tt></i> must be an empty directory.</p><p>
84
85 </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
86 </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
87 </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><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_remove_directory_from_uri
88                                             (GnomeVFSURI *uri);</pre><p>
89 Remove <i class="parameter"><tt>uri</tt></i>.  <i class="parameter"><tt>uri</tt></i> must be an empty directory.</p><p>
90
91 </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
92 </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
93 </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>&lt;&lt; Directory Handling</b></a></td><td align="right"><a accesskey="n" href="gnome-vfs-gnome-vfs-directory-list-ops.html"><b>
94 Listing Directory Contents &gt;&gt;</b></a></td></tr></table></body></html>