Re: g_file_test()



On 3 Sep 2001, Owen Taylor wrote:

> 
> Tim Janik <timj gtk org> writes:
> 
> > On Mon, 6 Aug 2001, Tim Janik wrote:
> > 
> > > 
> > > typedef enum
> > > {
> > >   G_FILE_TEST_IS_REGULAR    = 1 << 0,
> > >   G_FILE_TEST_IS_SYMLINK    = 1 << 1,
> > >   G_FILE_TEST_IS_DIR        = 1 << 2,
> > >   G_FILE_TEST_IS_EXECUTABLE = 1 << 3,
> > >   G_FILE_TEST_EXISTS        = 1 << 4
> > > } GFileTest;
> > > 
> > > gboolean g_file_test         (const gchar  *filename,
> > >                               GFileTest     test);
> > > 
> > > having used g_file_test() in a couple places now, i have to say that:
> > > 1) it definitely needs G_FILE_TEST_IS_READABLE and G_FILE_TEST_IS_WRITABLE
> > > 2) it should return TRUE only if all tests succeeded.
> > 
> > are there actually any objections/concerns not yet raised on this issue?
> > if not, i'd like to fix matters ASAP.
> 
> This was discussed and decided on for a reason (though I don't
> remember the details right now) ... both alternatives
> were considered. So, I'd appreciate if you'd hold off until we
> can see if we can locate that discussion.

the original discussion started out with:

To: gtk-devel-list gnome org
Subject: Utility functions from gnome-libs
From: Owen Taylor <otaylor redhat com>
Date: 03 Jul 2000 12:18:39 -0400


> 
> Regards,
>                                         Owen
> 
> 

---
ciaoTJ





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