public static ResourcePath Combine(ResourcePath rootPath, string path) { return(ResourcePath.Deserialize(Combine(rootPath.Serialize(), path))); }
public int CompareTo(ResourcePath other) { return(Serialize().CompareTo(other.Serialize())); }
/// <summary> /// Returns a <see cref="ResourcePath"/> pointing to the local file system using the given <paramref name="providerPath"/>. /// </summary> /// <param name="providerPath">Path which must be valid inside the local filesystem provider.</param> /// <returns>Resource path to the given path.</returns> public static ResourcePath GetResourcePath(string providerPath) { return(ResourcePath.BuildBaseProviderPath(LOCAL_FS_RESOURCE_PROVIDER_ID, providerPath)); }
static void OnResourcePathObjectsPruned(ILRUCache <ResourcePath, IResourceAccessor> sender, ResourcePath key, IResourceAccessor value) { value.Dispose(); }
public static string GetFileNameWithoutExtension(ResourcePath rp) { return(GetFileNameWithoutExtension(UnrollPathSegments(rp).Last())); }