No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MetaPath.cs 662B

12345678910111213141516171819202122232425262728
  1. using Unity.PlasticSCM.Editor.UI;
  2. namespace Unity.PlasticSCM.Editor
  3. {
  4. internal static class MetaPath
  5. {
  6. internal const string META_EXTENSION = ".meta";
  7. internal static bool IsMetaPath(string path)
  8. {
  9. return path.EndsWith(META_EXTENSION);
  10. }
  11. internal static string GetMetaPath(string path)
  12. {
  13. return string.Concat(
  14. path,
  15. META_EXTENSION);
  16. }
  17. internal static string GetPathFromMetaPath(string path)
  18. {
  19. return path.Substring(
  20. 0,
  21. path.Length - META_EXTENSION.Length);
  22. }
  23. }
  24. }