1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Basic File 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-file-operations.html" title="File Handling"><link rel="previous" href="gnome-vfs-file-operations.html" title="File Handling"><link rel="next" href="gnome-vfs-gnome-vfs-file-rw-ops.html" title="Reading and Writing"></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-file-operations.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td><td><a accesskey="u" href="gnome-vfs-file-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-file-rw-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-file-basic-ops"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2><span class="refentrytitle">Basic File Operations</span></h2><p>Basic File Operations — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">
35 enum <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a>;
36 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-create">gnome_vfs_create</a> (GnomeVFSHandle **handle,
38 href="../glib/glib-Basic-Types.html#gchar"
40 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode,
42 href="../glib/glib-Basic-Types.html#gboolean"
43 >gboolean</a> exclusive,
45 href="../glib/glib-Basic-Types.html#guint"
47 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-create-uri">gnome_vfs_create_uri</a> (GnomeVFSHandle **handle,
49 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode,
51 href="../glib/glib-Basic-Types.html#gboolean"
52 >gboolean</a> exclusive,
54 href="../glib/glib-Basic-Types.html#guint"
56 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-open">gnome_vfs_open</a> (GnomeVFSHandle **handle,
58 href="../glib/glib-Basic-Types.html#gchar"
60 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode);
61 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-open-uri">gnome_vfs_open_uri</a> (GnomeVFSHandle **handle,
63 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode);
64 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-close">gnome_vfs_close</a> (GnomeVFSHandle *handle);
65 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-unlink">gnome_vfs_unlink</a> (const <a
66 href="../glib/glib-Basic-Types.html#gchar"
67 >gchar</a> *text_uri);
68 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-unlink-from-uri">gnome_vfs_unlink_from_uri</a> (GnomeVFSURI *uri);
69 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-move-uri">gnome_vfs_move_uri</a> (GnomeVFSURI *old_uri,
72 href="../glib/glib-Basic-Types.html#gboolean"
73 >gboolean</a> force_replace);
74 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-move">gnome_vfs_move</a> (const <a
75 href="../glib/glib-Basic-Types.html#gchar"
76 >gchar</a> *old_text_uri,
78 href="../glib/glib-Basic-Types.html#gchar"
79 >gchar</a> *new_text_uri,
81 href="../glib/glib-Basic-Types.html#gboolean"
82 >gboolean</a> force_replace);
83 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-check-same-fs-uris">gnome_vfs_check_same_fs_uris</a> (GnomeVFSURI *source_uri,
84 GnomeVFSURI *target_uri,
86 href="../glib/glib-Basic-Types.html#gboolean"
87 >gboolean</a> *same_fs_return);
88 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-check-same-fs">gnome_vfs_check_same_fs</a> (const <a
89 href="../glib/glib-Basic-Types.html#gchar"
92 href="../glib/glib-Basic-Types.html#gchar"
95 href="../glib/glib-Basic-Types.html#gboolean"
96 >gboolean</a> *same_fs_return);
98 href="../glib/glib-Basic-Types.html#gboolean"
99 >gboolean</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-uri-exists">gnome_vfs_uri_exists</a> (GnomeVFSURI *uri);
100 <a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#gnome-vfs-create-symbolic-link">gnome_vfs_create_symbolic_link</a>
103 href="../glib/glib-Basic-Types.html#gchar"
104 >gchar</a> *target_reference);
105 </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>
107 </p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="GnomeVFSOpenMode"></a>enum GnomeVFSOpenMode</h3><pre class="programlisting">typedef enum {
108 GNOME_VFS_OPEN_NONE = 0,
109 GNOME_VFS_OPEN_READ = 1 << 0,
110 GNOME_VFS_OPEN_WRITE = 1 << 1,
111 GNOME_VFS_OPEN_RANDOM = 1 << 2
114 Mode in which files are opened. If GNOME_VFS_OPEN_RANDOM is not used, the
115 file will be have to be accessed sequentially.</p><p>
117 </p></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-create"></a>gnome_vfs_create ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_create (GnomeVFSHandle **handle,
119 href="../glib/glib-Basic-Types.html#gchar"
120 >gchar</a> *text_uri,
121 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode,
123 href="../glib/glib-Basic-Types.html#gboolean"
124 >gboolean</a> exclusive,
126 href="../glib/glib-Basic-Types.html#guint"
127 >guint</a> perm);</pre><p>
128 Create <i class="parameter"><tt>uri</tt></i> according to mode <i class="parameter"><tt>open_mode</tt></i>. On return, <i class="parameter"><tt>handle</tt></i> will then
129 contain a pointer to a handle for the open file.</p><p>
131 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handle</tt></i> :</span></td><td> A pointer to a pointer to a GnomeVFSHandle object
132 </td></tr><tr><td><span class="term"><i class="parameter"><tt>text_uri</tt></i> :</span></td><td> String representing the URI to create
133 </td></tr><tr><td><span class="term"><i class="parameter"><tt>open_mode</tt></i> :</span></td><td> mode to leave the file opened in after creation (or <tt class="literal">GNOME_VFS_OPEN_MODE_NONE</tt>
134 to leave the file closed after creation)
135 </td></tr><tr><td><span class="term"><i class="parameter"><tt>exclusive</tt></i> :</span></td><td> Whether the file should be created in "exclusive" mode:
136 i.e. if this flag is nonzero, operation will fail if a file with the
137 same name already exists.
138 </td></tr><tr><td><span class="term"><i class="parameter"><tt>perm</tt></i> :</span></td><td> Bitmap representing the permissions for the newly created file
140 </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
141 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-create-uri"></a>gnome_vfs_create_uri ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_create_uri (GnomeVFSHandle **handle,
143 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode,
145 href="../glib/glib-Basic-Types.html#gboolean"
146 >gboolean</a> exclusive,
148 href="../glib/glib-Basic-Types.html#guint"
149 >guint</a> perm);</pre><p>
150 Create <i class="parameter"><tt>uri</tt></i> according to mode <i class="parameter"><tt>open_mode</tt></i>. On return, <i class="parameter"><tt>handle</tt></i> will then
151 contain a pointer to a handle for the open file.</p><p>
153 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handle</tt></i> :</span></td><td> A pointer to a pointer to a GnomeVFSHandle object
154 </td></tr><tr><td><span class="term"><i class="parameter"><tt>uri</tt></i> :</span></td><td> URI for the file to create
155 </td></tr><tr><td><span class="term"><i class="parameter"><tt>open_mode</tt></i> :</span></td><td> Open mode
156 </td></tr><tr><td><span class="term"><i class="parameter"><tt>exclusive</tt></i> :</span></td><td> Whether the file should be created in "exclusive" mode:
157 i.e. if this flag is nonzero, operation will fail if a file with the
158 same name already exists.
159 </td></tr><tr><td><span class="term"><i class="parameter"><tt>perm</tt></i> :</span></td><td> Bitmap representing the permissions for the newly created file
161 </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
162 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-open"></a>gnome_vfs_open ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_open (GnomeVFSHandle **handle,
164 href="../glib/glib-Basic-Types.html#gchar"
165 >gchar</a> *text_uri,
166 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode);</pre><p>
167 Open <i class="parameter"><tt>text_uri</tt></i> according to mode <i class="parameter"><tt>open_mode</tt></i>. On return, <i class="parameter"><tt>handle</tt></i> will then
168 contain a pointer to a handle for the open file.</p><p>
170 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handle</tt></i> :</span></td><td> A pointer to a pointer to a GnomeVFSHandle object
171 </td></tr><tr><td><span class="term"><i class="parameter"><tt>text_uri</tt></i> :</span></td><td> String representing the URI to open
172 </td></tr><tr><td><span class="term"><i class="parameter"><tt>open_mode</tt></i> :</span></td><td> Open mode
173 </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
174 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-open-uri"></a>gnome_vfs_open_uri ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_open_uri (GnomeVFSHandle **handle,
176 <a href="gnome-vfs-gnome-vfs-file-basic-ops.html#GnomeVFSOpenMode">GnomeVFSOpenMode</a> open_mode);</pre><p>
177 Open <i class="parameter"><tt>uri</tt></i> according to mode <i class="parameter"><tt>open_mode</tt></i>. On return, <i class="parameter"><tt>handle</tt></i> will then
178 contain a pointer to a handle for the open file.</p><p>
180 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handle</tt></i> :</span></td><td> A pointer to a pointer to a GnomeVFSHandle object
181 </td></tr><tr><td><span class="term"><i class="parameter"><tt>uri</tt></i> :</span></td><td> URI to open
182 </td></tr><tr><td><span class="term"><i class="parameter"><tt>open_mode</tt></i> :</span></td><td> Open mode
183 </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
184 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-close"></a>gnome_vfs_close ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_close (GnomeVFSHandle *handle);</pre><p>
185 Close file associated with <i class="parameter"><tt>handle</tt></i>.</p><p>
187 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>handle</tt></i> :</span></td><td> A pointer to a GnomeVFSHandle object
188 </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.
189 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-unlink"></a>gnome_vfs_unlink ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_unlink (const <a
190 href="../glib/glib-Basic-Types.html#gchar"
191 >gchar</a> *text_uri);</pre><p>
192 Unlink <i class="parameter"><tt>text_uri</tt></i> (i.e. delete the file).</p><p>
194 </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 file to be unlinked
195 </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
196 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-unlink-from-uri"></a>gnome_vfs_unlink_from_uri ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_unlink_from_uri (GnomeVFSURI *uri);</pre><p>
197 Unlink <i class="parameter"><tt>uri</tt></i> (i.e. delete the file).</p><p>
199 </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 file to be unlinked
200 </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
201 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-move-uri"></a>gnome_vfs_move_uri ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_move_uri (GnomeVFSURI *old_uri,
202 GnomeVFSURI *new_uri,
204 href="../glib/glib-Basic-Types.html#gboolean"
205 >gboolean</a> force_replace);</pre><p>
206 Move a file from URI <i class="parameter"><tt>old_uri</tt></i> to <i class="parameter"><tt>new_uri</tt></i>. This will only work if <i class="parameter"><tt>old_uri</tt></i>
207 and <i class="parameter"><tt>new_uri</tt></i> are on the same file system. Otherwise, it is necessary
208 to use the more general %<a href="gnome-vfs-gnome-vfs-xfer.html#gnome-vfs-xfer-uri">gnome_vfs_xfer_uri</a>() function.</p><p>
210 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>old_uri</tt></i> :</span></td><td> Source URI
211 </td></tr><tr><td><span class="term"><i class="parameter"><tt>new_uri</tt></i> :</span></td><td> Destination URI
212 </td></tr><tr><td><span class="term"><i class="parameter"><tt>force_replace</tt></i> :</span></td><td> If <tt class="literal">TRUE</tt>, move target to <i class="parameter"><tt>new_uri</tt></i> even if there
213 is already a file at <i class="parameter"><tt>new_uri</tt></i>. If there is a file, it will be discarded.
214 </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.
215 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-move"></a>gnome_vfs_move ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_move (const <a
216 href="../glib/glib-Basic-Types.html#gchar"
217 >gchar</a> *old_text_uri,
219 href="../glib/glib-Basic-Types.html#gchar"
220 >gchar</a> *new_text_uri,
222 href="../glib/glib-Basic-Types.html#gboolean"
223 >gboolean</a> force_replace);</pre><p>
224 Move a file from URI <i class="parameter"><tt>old_text_uri</tt></i> to <i class="parameter"><tt>new_text_uri</tt></i>. This will only work
225 if <i class="parameter"><tt>old_text_uri</tt></i> and <i class="parameter"><tt>new_text_uri</tt></i> are on the same file system. Otherwise,
226 it is necessary to use the more general %<a href="gnome-vfs-gnome-vfs-xfer.html#gnome-vfs-xfer-uri">gnome_vfs_xfer_uri</a>() function.</p><p>
228 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>old_text_uri</tt></i> :</span></td><td> Source URI
229 </td></tr><tr><td><span class="term"><i class="parameter"><tt>new_text_uri</tt></i> :</span></td><td> Destination URI
230 </td></tr><tr><td><span class="term"><i class="parameter"><tt>force_replace</tt></i> :</span></td><td> if <tt class="literal">TRUE</tt>, perform the operation even if it unlinks an existing
231 file at <i class="parameter"><tt>new_text_uri</tt></i>
232 </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.
233 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-check-same-fs-uris"></a>gnome_vfs_check_same_fs_uris ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_check_same_fs_uris (GnomeVFSURI *source_uri,
234 GnomeVFSURI *target_uri,
236 href="../glib/glib-Basic-Types.html#gboolean"
237 >gboolean</a> *same_fs_return);</pre><p>
238 Check if <i class="parameter"><tt>source_uri</tt></i> and <i class="parameter"><tt>target_uri</tt></i> are on the same file system.</p><p>
240 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>source_uri</tt></i> :</span></td><td> A URI
241 </td></tr><tr><td><span class="term"><i class="parameter"><tt>target_uri</tt></i> :</span></td><td> Another URI
242 </td></tr><tr><td><span class="term"><i class="parameter"><tt>same_fs_return</tt></i> :</span></td><td> Pointer to a boolean variable which will be set to <tt class="literal">TRUE</tt>
243 if <i class="parameter"><tt>source_uri</tt></i> and <i class="parameter"><tt>target_uri</tt></i> are on the same file system on return.
244 </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.
245 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-check-same-fs"></a>gnome_vfs_check_same_fs ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_check_same_fs (const <a
246 href="../glib/glib-Basic-Types.html#gchar"
249 href="../glib/glib-Basic-Types.html#gchar"
252 href="../glib/glib-Basic-Types.html#gboolean"
253 >gboolean</a> *same_fs_return);</pre><p>
254 Return <tt class="literal">TRUE</tt> if <i class="parameter"><tt>source</tt></i> and <i class="parameter"><tt>target</tt></i> are on the same file system.</p><p>
256 </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i class="parameter"><tt>source</tt></i> :</span></td><td> A URI
257 </td></tr><tr><td><span class="term"><i class="parameter"><tt>target</tt></i> :</span></td><td> Another URI
258 </td></tr><tr><td><span class="term"><i class="parameter"><tt>same_fs_return</tt></i> :</span></td><td> Pointer to a boolean variable which will be set to <tt class="literal">TRUE</tt>
259 </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.
260 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-uri-exists"></a>gnome_vfs_uri_exists ()</h3><pre class="programlisting"><a
261 href="../glib/glib-Basic-Types.html#gboolean"
262 >gboolean</a> gnome_vfs_uri_exists (GnomeVFSURI *uri);</pre><p>
263 Check if the URI points to an existing entity.</p><p>
265 </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> A URI
266 </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td> TRUE if URI exists.
267 </td></tr></tbody></table></div></div><hr><div class="refsect2" lang="en"><h3><a name="gnome-vfs-create-symbolic-link"></a>gnome_vfs_create_symbolic_link ()</h3><pre class="programlisting"><a href="gnome-vfs-gnome-vfs-result.html#GnomeVFSResult">GnomeVFSResult</a> gnome_vfs_create_symbolic_link
270 href="../glib/glib-Basic-Types.html#gchar"
271 >gchar</a> *target_reference);</pre><p>
272 Creates a symbolic link, or eventually, a URI link (as necessary)
273 at <i class="parameter"><tt>uri</tt></i> pointing to <i class="parameter"><tt>target_reference</tt></i></p><p>
275 </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 to create a link at
276 </td></tr><tr><td><span class="term"><i class="parameter"><tt>target_reference</tt></i> :</span></td><td> URI "reference" to point the link to (URI or relative path)
277 </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
278 </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-file-operations.html"><b><< File Handling</b></a></td><td align="right"><a accesskey="n" href="gnome-vfs-gnome-vfs-file-rw-ops.html"><b>Reading and Writing >></b></a></td></tr></table></body></html>