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.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Wed, 08 Feb 2006 00:52:09 +0100
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...

Regards, ULFL