cjard
October 24th, 2005, 12:21 PM
Im trying to see if one path is equal to another:
DirectoryInfo di1 = new FileInfo("c:\temp\hello.txt").Directory;
DirectoryInfo di2 = new DirectoryInfo("c:\temp");
Console.Out.writeLn( di1.Equals(di2) );
prints false.. but they reference the same location on disk.. is this a retardedness of directoryInfo?
DirectoryInfo di1 = new FileInfo("c:\temp\hello.txt").Directory;
DirectoryInfo di2 = new DirectoryInfo("c:\temp");
Console.Out.writeLn( di1.Equals(di2) );
prints false.. but they reference the same location on disk.. is this a retardedness of directoryInfo?