Ethereal-dev: Re: [Ethereal-dev] file_exists() returning the oposite?

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Wed, 8 Feb 2006 00:56:50 +0100
On 2/8/06, Ulf Lamping <ulf.lamping@xxxxxx> wrote:
> LEGO wrote:
> > Hi,
> > I realy do not know if file_exists() from epan/filesystem.c works on
> > windows but I've seen it does not on my mac and AFAIK it should not
> > work on *NIX in general.
> >
> >
> Hi LEGO!
>
> I've written that code some time ago and it works pretty well on Win32
> as far as I can tell.
>
> I needed this for a function to ask: "The filename is already existing,
> do you really want to use this name ..." while saving a capture file.
>
> As filesystem.c already has a lot of #ifdef _WIN32 around code parts, we
> might add another one ...
>
> You might want to add a *NIX version of that function and put some
> #ifdef _WIN32 #else #endif lines...

That's exactly what I'm doing right now. :)

Luis

--
This information is top security. When you have read it, destroy yourself.
-- Marshall McLuhan