<refentry id="thunar-vfs-Operations">
<refmeta>
<refentrytitle>Operations</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>THUNAR-VFS Library</refmiscinfo>
</refmeta>

<refnamediv>
<refname>Operations</refname><refpurpose></refpurpose>
</refnamediv>

<refsynopsisdiv><title>Synopsis</title>

<synopsis>

#include &lt;thunar-vfs/thunar-vfs.h&gt;


<link linkend="ThunarVfsJob">ThunarVfsJob</link>* <link linkend="thunar-vfs-listdir">thunar_vfs_listdir</link>            (<link linkend="ThunarVfsPath">ThunarVfsPath</link> *path,
                                             <link linkend="GError">GError</link> **error);
<link linkend="ThunarVfsJob">ThunarVfsJob</link>* <link linkend="thunar-vfs-copy">thunar_vfs_copy</link>               (<link linkend="GList">GList</link> *source_path_list,
                                             <link linkend="ThunarVfsPath">ThunarVfsPath</link> *target_path,
                                             <link linkend="GError">GError</link> **error);
<link linkend="ThunarVfsJob">ThunarVfsJob</link>* <link linkend="thunar-vfs-move">thunar_vfs_move</link>               (<link linkend="GList">GList</link> *source_path_list,
                                             <link linkend="ThunarVfsPath">ThunarVfsPath</link> *target_path,
                                             <link linkend="GError">GError</link> **error);
<link linkend="ThunarVfsJob">ThunarVfsJob</link>* <link linkend="thunar-vfs-unlink">thunar_vfs_unlink</link>             (<link linkend="GList">GList</link> *path_list,
                                             <link linkend="GError">GError</link> **error);
</synopsis>
</refsynopsisdiv>









<refsect1>
<title>Description</title>
<para>

</para>
</refsect1>

<refsect1>
<title>Details</title>
<refsect2>
<title><anchor id="thunar-vfs-listdir"/>thunar_vfs_listdir ()</title>
<indexterm><primary>thunar_vfs_listdir</primary></indexterm><programlisting><link linkend="ThunarVfsJob">ThunarVfsJob</link>* thunar_vfs_listdir            (<link linkend="ThunarVfsPath">ThunarVfsPath</link> *path,
                                             <link linkend="GError">GError</link> **error);</programlisting>
<para>
Generates a <link linkend="ThunarVfsListdirJob"><type>ThunarVfsListdirJob</type></link>, which can be used to list the
contents of a directory (as specified by <parameter>path</parameter>). If the creation
of the job failes for some reason, <literal>NULL</literal> will be returned and
<parameter>error</parameter> will be set to point to a <link linkend="GError"><type>GError</type></link> describing the cause.
Else the newly allocated <link linkend="ThunarVfsListdirJob"><type>ThunarVfsListdirJob</type></link> will be returned
and the caller is responsible to call <link linkend="g-object-unref"><function>g_object_unref()</function></link>.
</para>
<para>
Note, that the returned job is launched right away, so you
don't need to call <link linkend="thunar-vfs-job-launch"><function>thunar_vfs_job_launch()</function></link> on it.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>path</parameter>&nbsp;:</term>
<listitem><simpara> the <link linkend="ThunarVfsPath"><type>ThunarVfsPath</type></link> for the folder that should be listed.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>error</parameter>&nbsp;:</term>
<listitem><simpara> return location for errors or <literal>NULL</literal>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the newly allocated <link linkend="ThunarVfsListdirJob"><type>ThunarVfsListdirJob</type></link> or <literal>NULL</literal>
              if an error occurs while creating the job.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="thunar-vfs-copy"/>thunar_vfs_copy ()</title>
<indexterm><primary>thunar_vfs_copy</primary></indexterm><programlisting><link linkend="ThunarVfsJob">ThunarVfsJob</link>* thunar_vfs_copy               (<link linkend="GList">GList</link> *source_path_list,
                                             <link linkend="ThunarVfsPath">ThunarVfsPath</link> *target_path,
                                             <link linkend="GError">GError</link> **error);</programlisting>
<para>
Generates a <link linkend="ThunarVfsTransferJob"><type>ThunarVfsTransferJob</type></link>, which can be used to copy
the files referenced by <parameter>source_path_list</parameter> to the directory referred
to by <parameter>target_path</parameter>. If the creation of the job failes for some reason,
<literal>NULL</literal> will be returned and <parameter>error</parameter> will be set to point to a <link linkend="GError"><type>GError</type></link>
describing the cause. Else the newly allocated <link linkend="ThunarVfsTransferJob"><type>ThunarVfsTransferJob</type></link>
will be returned and the caller is responsible to call
<link linkend="g-object-unref"><function>g_object_unref()</function></link>.
</para>
<para>
Note, that the returned job is launched right away, so you don't
need to call <link linkend="thunar-vfs-job-launch"><function>thunar_vfs_job_launch()</function></link> on it.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>source_path_list</parameter>&nbsp;:</term>
<listitem><simpara> the list of <link linkend="ThunarVfsPath"><type>ThunarVfsPath</type></link><!---->s that should be copied.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>target_path</parameter>&nbsp;:</term>
<listitem><simpara> the <link linkend="ThunarVfsPath"><type>ThunarVfsPath</type></link> of the target directory.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>error</parameter>&nbsp;:</term>
<listitem><simpara> return location for errors or <literal>NULL</literal>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the newly allocated <link linkend="ThunarVfsTransferJob"><type>ThunarVfsTransferJob</type></link> or <literal>NULL</literal>
              if an error occurs while creating the job.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="thunar-vfs-move"/>thunar_vfs_move ()</title>
<indexterm><primary>thunar_vfs_move</primary></indexterm><programlisting><link linkend="ThunarVfsJob">ThunarVfsJob</link>* thunar_vfs_move               (<link linkend="GList">GList</link> *source_path_list,
                                             <link linkend="ThunarVfsPath">ThunarVfsPath</link> *target_path,
                                             <link linkend="GError">GError</link> **error);</programlisting>
<para>
Generates a <link linkend="ThunarVfsTransferJob"><type>ThunarVfsTransferJob</type></link>, which can be used to move
the files referenced by <parameter>source_path_list</parameter> to the directory referred
to by <parameter>target_path</parameter>. If the creation of the job failes for some reason,
<literal>NULL</literal> will be returned and <parameter>error</parameter> will be set to point to a <link linkend="GError"><type>GError</type></link>
describing the cause. Else the newly allocated <link linkend="ThunarVfsTransferJob"><type>ThunarVfsTransferJob</type></link>
will be returned and the caller is responsible to call <link linkend="g-object-unref"><function>g_object_unref()</function></link>.
</para>
<para>
Note, that the returned job is launched right away, so you don't
need to call <link linkend="thunar-vfs-job-launch"><function>thunar_vfs_job_launch()</function></link> on it.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>source_path_list</parameter>&nbsp;:</term>
<listitem><simpara> the list of <link linkend="ThunarVfsPath"><type>ThunarVfsPath</type></link><!---->s that should be moved.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>target_path</parameter>&nbsp;:</term>
<listitem><simpara> the <link linkend="ThunarVfsPath"><type>ThunarVfsPath</type></link> of the target directory.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>error</parameter>&nbsp;:</term>
<listitem><simpara> return location for errors or <literal>NULL</literal>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the newly allocated <link linkend="ThunarVfsTransferJob"><type>ThunarVfsTransferJob</type></link> or <literal>NULL</literal>
              if an error occurs while creating the job.
</simpara></listitem></varlistentry>
</variablelist></refsect2>
<refsect2>
<title><anchor id="thunar-vfs-unlink"/>thunar_vfs_unlink ()</title>
<indexterm><primary>thunar_vfs_unlink</primary></indexterm><programlisting><link linkend="ThunarVfsJob">ThunarVfsJob</link>* thunar_vfs_unlink             (<link linkend="GList">GList</link> *path_list,
                                             <link linkend="GError">GError</link> **error);</programlisting>
<para>
Generates a <link linkend="ThunarVfsInteractiveJob"><type>ThunarVfsInteractiveJob</type></link>, which can be used to unlink
all files referenced by the <parameter>path_list</parameter>. If the creation of the job
failes for some reason, <literal>NULL</literal> will be returned and <parameter>error</parameter> will
be set to point to a <link linkend="GError"><type>GError</type></link> describing the cause. Else, the
newly allocated <link linkend="ThunarVfsUnlinkJob"><type>ThunarVfsUnlinkJob</type></link> will be returned, and the
caller is responsible to call <link linkend="g-object-unref"><function>g_object_unref()</function></link>.
</para>
<para>
Note, that the returned job is launched right away, so you
don't need to call <link linkend="thunar-vfs-job-launch"><function>thunar_vfs_job_launch()</function></link> on it.</para>
<para>

</para><variablelist role="params">
<varlistentry><term><parameter>path_list</parameter>&nbsp;:</term>
<listitem><simpara> a list of <link linkend="ThunarVfsPath"><type>ThunarVfsPath</type></link><!---->s, that should be unlinked.
</simpara></listitem></varlistentry>
<varlistentry><term><parameter>error</parameter>&nbsp;:</term>
<listitem><simpara> return location for errors or <literal>NULL</literal>.
</simpara></listitem></varlistentry>
<varlistentry><term><emphasis>Returns</emphasis>&nbsp;:</term><listitem><simpara> the newly allocated <link linkend="ThunarVfsUnlinkJob"><type>ThunarVfsUnlinkJob</type></link> or <literal>NULL</literal>
              if an error occurs while creating the job.
</simpara></listitem></varlistentry>
</variablelist></refsect2>

</refsect1>




</refentry>
