Archive for September 28th, 2007

how to check if two filename paths refer to the same file?

Posted on September 28, 2007. Filed under: Java programming | Tags: , , |

I just found out the information that a filename path may include redundant names such as ‘.’ or ‘..’ or symbolic links (on UNIX platforms).
so how to know exactly if two filename paths are referring to the same file?
use File.getCanonicalFile() to convert a filename path to a unique canonical form suitable for comparisons. and then, [...]

Read Full Post | Make a Comment ( None so far )

Liked it here?
Why not try sites on the blogroll...