S
SzH
Suppose that there is a program that takes two files as its command
line arguments. Is there a (cross platform) way to decide whether the
two files are the same? Simple string comparison is not enough as the
two files might be specified as "file.txt" and "./file.txt", or one of
them may be a symlink to the other.
[I've already posted this 30 min ago but it didn't show up in Google
Groups---sorry if some people get it twice.]
line arguments. Is there a (cross platform) way to decide whether the
two files are the same? Simple string comparison is not enough as the
two files might be specified as "file.txt" and "./file.txt", or one of
them may be a symlink to the other.
[I've already posted this 30 min ago but it didn't show up in Google
Groups---sorry if some people get it twice.]