You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
662 B
C#
29 lines
662 B
C#
using Unity.PlasticSCM.Editor.UI;
|
|
|
|
namespace Unity.PlasticSCM.Editor
|
|
{
|
|
internal static class MetaPath
|
|
{
|
|
internal const string META_EXTENSION = ".meta";
|
|
|
|
internal static bool IsMetaPath(string path)
|
|
{
|
|
return path.EndsWith(META_EXTENSION);
|
|
}
|
|
|
|
internal static string GetMetaPath(string path)
|
|
{
|
|
return string.Concat(
|
|
path,
|
|
META_EXTENSION);
|
|
}
|
|
|
|
internal static string GetPathFromMetaPath(string path)
|
|
{
|
|
return path.Substring(
|
|
0,
|
|
path.Length - META_EXTENSION.Length);
|
|
}
|
|
}
|
|
}
|