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-20-gnome-vfs-directory-basic-ops.html
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 {
3             background: #eeeeee;
4             border: solid 1px #aaaaaa;
5             padding: 0.5em;
6         }
7         .programlisting {
8             background: #eeeeff;
9             border: solid 1px #aaaaff;
10             padding: 0.5em;
11         }
12         .variablelist {
13             padding: 4px;
14             margin-left: 3em;
15         }
16         .navigation {
17             background: #ffeeee;
18             border: solid 1px #ffaaaa;
19             margin-top: 0.5em;
20             margin-bottom: 0.5em;
21         }
22         .navigation a {
23             color: #770000;
24         }
25         .navigation a:visited {
26             color: #550000;
27         }
28         .navigation .title {
29             font-size: 200%;
30         }
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 &#8212; 
32 Creating and removing directories.</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
33
34
35
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"
38 >gchar</a> *text_uri,
39                                              <a
40 href="../glib/glib-Basic-Types.html#guint"
41 >guint</a> perm);
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>
43                                             (GnomeVFSURI *uri,
44                                              <a
45 href="../glib/glib-Basic-Types.html#guint"
46 >guint</a> perm);
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>
51                                             (GnomeVFSURI *uri);
52 </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
53
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"
56 >gchar</a> *text_uri,
57                                              <a
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>
61
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
66                                             (GnomeVFSURI *uri,
67                                              <a
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>
72
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>
80
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>
86
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>&lt;&lt; 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 &gt;&gt;</b></a></td></tr></table></body></html>