public VirtualDisk OpenDisk(DiscFileSystem fileSystem, string path, FileAccess access) { return(OpenDisk(new DiscFileLocator(fileSystem, @"\"), path, access)); }
/// <summary> /// Create a new differencing disk, possibly within an existing disk. /// </summary> /// <param name="fileSystem">The file system to create the disk on</param> /// <param name="path">The path (or URI) for the disk to create</param> /// <returns>The newly created disk</returns> public abstract VirtualDisk CreateDifferencingDisk(DiscFileSystem fileSystem, string path);
/// <summary> /// Indicates if <paramref name="obj"/> is equivalent to this object. /// </summary> /// <param name="obj">The object to compare</param> /// <returns><c>true</c> if <paramref name="obj"/> is equivalent, else <c>false</c></returns> public override bool Equals(object obj) { DiscFileSystemInfo asInfo = obj as DiscFileSystemInfo; if (obj == null) { return(false); } return(string.Compare(Path, asInfo.Path, StringComparison.Ordinal) == 0 && DiscFileSystem.Equals(FileSystem, asInfo.FileSystem)); }
public DiscFileLocator(DiscFileSystem fileSystem, string basePath) { _fileSystem = fileSystem; _basePath = basePath; }
internal DiscFileInfo(DiscFileSystem fileSystem, string path) : base(fileSystem, path) { }