Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetDirectory"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this collection belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The directory information</param>
 /// <param name="path">The root-relative path of this collection</param>
 /// <param name="name">The entry name (<see langword="null"/> when <see cref="FileSystemInfo.Name"/> of <see cref="DotNetEntry.Info"/> should be used)</param>
 /// <param name="isRoot">Is this the file systems root directory?</param>
 public DotNetDirectory(
     [NotNull] DotNetFileSystem fileSystem,
     [CanBeNull] ICollection parent,
     [NotNull] DirectoryInfo info,
     [NotNull] Uri path,
     [CanBeNull] string name,
     bool isRoot = false)
     : base(fileSystem, parent, info, path, name)
 {
     _isRoot = isRoot;
     _fileSystemPropertyStore = fileSystem.PropertyStore as IFileSystemPropertyStore;
     DirectoryInfo            = info;
 }
Beispiel #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DotNetDirectory"/> class.
 /// </summary>
 /// <param name="fileSystem">The file system this collection belongs to</param>
 /// <param name="parent">The parent collection</param>
 /// <param name="info">The directory information</param>
 /// <param name="path">The root-relative path of this collection</param>
 /// <param name="name">The entry name (<see langword="null"/> when <see cref="FileSystemInfo.Name"/> of <see cref="DotNetEntry.Info"/> should be used)</param>
 /// <param name="isRoot">Is this the file systems root directory?</param>
 public DotNetDirectory(
     DotNetFileSystem fileSystem,
     ICollection parent,
     DirectoryInfo info,
     Uri path,
     string name,
     bool isRoot = false)
     : base(fileSystem, parent, info, path, name)
 {
     _isRoot = isRoot;
     _fileSystemPropertyStore = fileSystem.PropertyStore as IFileSystemPropertyStore;
     DirectoryInfo            = info;
 }