Fix Windows implementation of IsSubfolderOf
This commit is contained in:
parent
7763d7a1cd
commit
20b93d4690
|
@ -40,8 +40,8 @@ namespace BizHawk.Common.PathExtensions
|
|||
#endif
|
||||
}
|
||||
|
||||
var parentUri = new Uri(parentPath);
|
||||
for (var childUri = new DirectoryInfo(childPath).Parent; childUri != null; childUri = childUri.Parent)
|
||||
var parentUri = new Uri(parentPath.RemoveSuffix(Path.DirectorySeparatorChar));
|
||||
for (var childUri = new DirectoryInfo(childPath); childUri != null; childUri = childUri.Parent)
|
||||
{
|
||||
if (new Uri(childUri.FullName) == parentUri) return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue