/// <summary> /// Constructeur à partir d'un chemin absolu. La catégorie est déduite /// </summary> /// <param name="physicalPath">Chemin physique dans le référentiel</param> public RepositoryFile(string physicalPath) { Debug.Assert(Path.IsPathRooted(physicalPath), "Le chemin ne doit pas etre relatif"); _absolutePath = physicalPath; _path = RepositoryManager.MakeRelative(physicalPath, out _category); }
/// <summary> /// Création du fichier absolu à partir du chemin relatif /// </summary> /// <param name="relativePath">The relative path.</param> /// <returns></returns> private string CreateAbsoluteLocalPath(string relativePath) { return(RepositoryManager.ResolvePath(_category, relativePath)); }