B
Beman Dawes
[Sorry, this is really a Win32 API question, but I can't figure out
where else to post it and I can trust the answers here.]
How can you determine if two paths resolve to the same file or
directory?
For example, "abc" and "ABC" may or may not represent the same file or
directory, depending on the current state of the file system. (That's
only one example - there are a large number of other cases where two
very different paths resolve to the same file or directory.)
On POSIX, you might do a stat() on each, and then see if the file
serial numbers are the same.
While VC++ does supply stat(), the file serial number (st_ino)
returned is documented as only working on Unix file systems.
Any ideas? Where else might I ask?
--Beman Dawes
where else to post it and I can trust the answers here.]
How can you determine if two paths resolve to the same file or
directory?
For example, "abc" and "ABC" may or may not represent the same file or
directory, depending on the current state of the file system. (That's
only one example - there are a large number of other cases where two
very different paths resolve to the same file or directory.)
On POSIX, you might do a stat() on each, and then see if the file
serial numbers are the same.
While VC++ does supply stat(), the file serial number (st_ino)
returned is documented as only working on Unix file systems.
Any ideas? Where else might I ask?
--Beman Dawes