Ack, I was too brain damaged from contiguous coding and couldn't think of
anything good. I like your suggestion, or even better IsDirReal() so that
it can be grepped together with IsDir(). Agree?


On Wed, Jan 22, 2014 at 11:18 AM, Kristian Amlie
<notifications@github.com>wrote:

> In libutils/file_lib.c:
>
> > @@ -140,6 +140,23 @@ int FullRead(int fd, char *ptr, size_t len)
> >      return total_read;
> >  }
> >
> > +/**
> > + * @return 1 if dir, 0 if not, -1 in case of error.
> > + * @note difference with files_names.h:IsDir() is that this doesn't
> > + *       follow symlinks, so a symlink is never a directory...
> > + */
> > +int IsDir2(const char *path)
>
> IsDir2 is very non-informative. Could we call it IsRealDir or something
> like that?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/cfengine/core/pull/1326/files#r9070551>
> .
>