PathEx.cs 395 B

1234567891011121314151617
  1. using System.IO;
  2. namespace BansheeEngine
  3. {
  4. public static class PathEx
  5. {
  6. public static bool Compare(string a, string b)
  7. {
  8. return Path.GetFullPath(a) == Path.GetFullPath(b);
  9. }
  10. public static bool IsPartOf(string path, string parent)
  11. {
  12. return Path.GetFullPath(path).StartsWith(Path.GetFullPath(parent));
  13. }
  14. }
  15. }