gnome_vfs_open_uri () create question.



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I'm working with gnome-vfs for Gnome1.x right now (don't ask why). Anyways the
question is when I call gnome_vfs_open_uri (&handle, GNOME_VFS_URI_WRITE), does
it create a new file for me if it doesn't exists (file that is pointed to by
the 'handle'). Or do I have to revert to something like

result = gnome_vfs_open_uri (&handle, GNOME_VFS_URI_WRITE);

<code>
if (result != GNOME_VFS_OK) {
   if (result == GNOME_VFS_ERROR_NOT_FOUND) {
      gnome_vfs_create_uri (...);
   } else {
      ERROR!
   }
}
</code>

It would be nice if gnome_vfs_open_uri (&handle, GNOME_VFS_URI_WRITE); did it
for me :D

Thanks in advance
Archit Baweja

- -- 
fork() is the Unix programmer's hammer. Because it's available, every problem looks like a nail.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE++RAW2rWNPKmGjMcRApD7AJ4qXIMA4AJw215GlBT2repq49H2fgCfUQCN
XLIYx5wi0/J2GBdWthUokmU=
=6/Vk
-----END PGP SIGNATURE-----



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]