如果我有这种决心在Windows上立案,是否有一种可接受的途径来获得档案名称的传说形式?
例如,我很想知道,我是否知道。
C:stuff hingsetcmiscwhatever.txt
以及
C:stuff hingsetcmiscother..whatever.txt
actually point to the same file or not, 以及store the canonical form of the path in my application.
Note that simple string comparisons won t work, nor will any RegEx magic. Remember that we have things like NTFS reparse points to deal with since Windows 2000 以及the new Libraries structure in Windows 7.