<refentry id="gnome-vfs-20-gnome-vfs-directory-basic-ops">
<refmeta>
<refentrytitle id="top_of_page">Basic Directory Operations</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GNOME-VFS-2.0 Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>Basic Directory Operations</refname>
<refpurpose>
Creating and removing directories.</refpurpose>
<!--[<xref linkend="desc" endterm="desc.title"/>]-->
</refnamediv>

<refsynopsisdiv id="synopsis">
<title id="synopsis.title">Synopsis</title>

<synopsis>



<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-make-directory">gnome_vfs_make_directory</link>     (const <link linkend="gchar">gchar</link> *text_uri,
                                             <link linkend="guint">guint</link> perm);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-make-directory-for-uri">gnome_vfs_make_directory_for_uri</link>
                                            (<link linkend="GnomeVFSURI">GnomeVFSURI</link> *uri,
                                             <link linkend="guint">guint</link> perm);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-remove-directory">gnome_vfs_remove_directory</link>   (const <link linkend="gchar">gchar</link> *text_uri);
<link linkend="GnomeVFSResult">GnomeVFSResult</link> <link linkend="gnome-vfs-remove-directory-from-uri">gnome_vfs_remove_directory_from_uri</link>
                                            (<link linkend="GnomeVFSURI">GnomeVFSURI</link> *uri);
</synopsis>
</refsynopsisdiv>









<refsect1 id="desc">
<title id="desc.title">Description</title>
<para>

</para>
</refsect1>

<refsect1 id="details">
<title id="details.title">Details</title>
<refsect2>
<title><anchor id="gnome-vfs-make-directory" role="function"/>gnome_vfs_make_directory ()</title>
<indexterm><primary>gnome_vfs_make_directory</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_make_directory     (const <link linkend="gchar">gchar</link> *text_uri,
                                             <link linkend="guint">guint</link> perm);</programlisting>
<para>
Create <parameter>text_uri</parameter> as a directory.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>text_uri</parameter>&nbsp;:</term>
<listitem><simpara> uri of the directory to be created.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>perm</parameter>&nbsp;:</term>
<listitem><simpara> Unix-style permissions for the newly created directory
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> an integer representing the result of the operation.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-make-directory-for-uri" role="function"/>gnome_vfs_make_directory_for_uri ()</title>
<indexterm><primary>gnome_vfs_make_directory_for_uri</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_make_directory_for_uri
                                            (<link linkend="GnomeVFSURI">GnomeVFSURI</link> *uri,
                                             <link linkend="guint">guint</link> perm);</programlisting>
<para>
Create a directory at <parameter>uri</parameter>. Only succeeds if a file or directory
does not already exist at <parameter>uri</parameter>.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>uri</parameter>&nbsp;:</term>
<listitem><simpara> uri of the directory to be created.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>perm</parameter>&nbsp;:</term>
<listitem><simpara> Unix-style permissions for the newly created directory.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> an integer representing the result of the operation.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-remove-directory" role="function"/>gnome_vfs_remove_directory ()</title>
<indexterm><primary>gnome_vfs_remove_directory</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_remove_directory   (const <link linkend="gchar">gchar</link> *text_uri);</programlisting>
<para>
Remove <parameter>text_uri</parameter>. <parameter>text_uri</parameter> must be an empty directory.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>text_uri</parameter>&nbsp;:</term>
<listitem><simpara> path of the directory to be removed.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> an integer representing the result of the operation.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="gnome-vfs-remove-directory-from-uri" role="function"/>gnome_vfs_remove_directory_from_uri ()</title>
<indexterm><primary>gnome_vfs_remove_directory_from_uri</primary></indexterm><programlisting><link linkend="GnomeVFSResult">GnomeVFSResult</link> gnome_vfs_remove_directory_from_uri
                                            (<link linkend="GnomeVFSURI">GnomeVFSURI</link> *uri);</programlisting>
<para>
Remove <parameter>uri</parameter>. <parameter>uri</parameter> must be an empty directory.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>uri</parameter>&nbsp;:</term>
<listitem><simpara> uri of the directory to be removed.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> an integer representing the result of the operation.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
