[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-devel] same_file util function?
- Date: Fri, 15 Apr 2005 13:57:19 -0500
- From: Erik Paulson <epaulson@xxxxxxxxxxx>
- Subject: Re: [Condor-devel] same_file util function?
On Fri, Apr 15, 2005 at 07:51:41PM +0100, Matt Hope wrote:
> how accurate must it be?
>
I want to use it for recursively handling LOCAL_CONFIG_FILE, and to
use it to avoid cycles. I'd rather check to see if they're the same file
instead of doing a strcmp (or stricmp) on the filename, since that's not
particularly great.
On unix I'd probably just look at the file and check it's device and
inode number, which is probably Good Enough(tm), but I have no idea what
I'd do on Win32.
-Erik
> should it be able to handle unc path / local drive path / mounted drive paths
>
> etc...
>
> I did a quick one of these in .net for windows only and soon gave up
> trying to make it accurate since the scope for alternate roots was so
> big.
>
> There seems to be no windows supplied function to allow you to work
> this out - at least none that I found.
>
> Matt
>
> On 4/15/05, Erik Paulson <epaulson@xxxxxxxxxxx> wrote:
> >
> > Do we have a util lib function that's like same_host() but for files
> > ie give it to strings and find out of they're the same file, and works
> > on both Windoze and UNIX?
> >
> > -Erik
> > _______________________________________________
> > Condor-devel mailing list
> > Condor-devel@xxxxxxxxxxx
> > https://lists.cs.wisc.edu/mailman/listinfo/condor-devel
> >