Forum Navigation
identical filepaths (FilePath)
Moderators:
kris
Posted: 01/16/08 11:11:23To check if two given paths point to the same file, I came up with this:
FileSystem?.toAbsolute(new FilePath?(normalize(sourceFile))) == FileSystem?.toAbsolute(new FilePath?(normalize(targetFile)))
Perhaps there is a better way to do it? If not, may I suggest to implement such a method in FilePath? or FileSystem??