Re: directory_visit_internal() in libgnomevfs/gnome-vfs-directory.c



On Sat, 2007-05-05 at 16:49 -0400, Marlon wrote:

> which result codes from gnome_vfs_directory_open_from_uri() should be
> flat-out ignored, which ones should be ignorable on request of the
> client ( e.g. nautilus), and which ones should be fatal, causing the
> directory walk to terminate?  what's the appropriate way for clients
> to identify the return codes to be ignored?  a directory visit option
> for each one?

I really think there are only two cases, either you're doing something
that needs to affect *all* files, or its an error, or you just want to
cover as many files as possible (as in the case of search). So, I think
a visit option that ignores all errors when recursing into a
subdirectory.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Alexander Larsson                                            Red Hat, Inc 
                   alexl redhat com    alla lysator liu se 
He's an impetuous voodoo romance novelist living undercover at Ringling Bros. 
Circus. She's a scantily clad red-headed research scientist in the witness 
protection program. They fight crime! 




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