Re: File removal
- From: Alexander Larsson <alexl redhat com>
- To: Matthias Kaeppler <matthias finitestate org>
- Cc: gnome-vfs-list gnome org, Murray Cumming <murrayc murrayc com>
- Subject: Re: File removal
- Date: Tue, 22 Nov 2005 15:42:25 +0100
On Mon, 2005-11-21 at 16:43 +0100, Matthias Kaeppler wrote:
> Murray Cumming wrote:
> >>Okay, I was just somewhat confused because the C++ bindings supply a
> >>function called remove() (for synchronous deletion); it's probably just
> >>an overloaded wrapper for these two funtions (with a slightly more
> >>intuitive name).
> >
> >
> > No, that seems to be a wrapper for gnome_vfs_xfer_delete_list().
>
> Yes, you're right. So I have a couple of options on how to remove a
> file. Are there any guidelines/practices when to use what?
>
> AFAICT, if I want to remove files without blocking the rest of the
> application, I use the transfer() functions with the respective
> removal-options (as Alexander pointed out), and otherwise remove().
>
> Is that correct?
gnome_vfs_xfer_delete_list() is nicer than gnome_vfs_xfer_uri_list +
GNOME_VFS_XFER_DELETE_ITEMS if you just want to remove things. It'll end
up calling the same code as the normal _xfer call, but with less
arguments.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Alexander Larsson Red Hat, Inc
alexl redhat com alla lysator liu se
He's an ungodly Republican filmmaker trapped in a world he never made. She's a
plucky hypochondriac former first lady living homeless in New York's sewers.
They fight crime!
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]