Ejemplo n.º 1
0
 /// <summary>
 /// Get the relative path to another directory. If this path and the target path
 /// do not share the same file provider, the target path is returned.
 /// </summary>
 /// <param name="target">The target directory path.</param>
 /// <returns>A <see cref="DirectoryPath"/>.</returns>
 public DirectoryPath GetRelativePath(DirectoryPath target) => RelativePathResolver.Resolve(this, target);
 public IDirectory GetDirectory(DirectoryPath path) => new DocumentDirectory(this, path);
Ejemplo n.º 3
0
 internal DocumentDirectory(DocumentFileProvider fileProvider, DirectoryPath path)
 {
     _fileProvider = fileProvider ?? throw new ArgumentNullException(nameof(fileProvider));
     Path          = path ?? throw new ArgumentNullException(nameof(path));
 }