using System.IO; namespace VersOne.Epub.Environment { /// /// Provides methods for various file system related operations. /// internal interface IFileSystem { /// /// Determines whether the specified file exists. /// /// The file to check. /// true if path contains the name of an existing file; otherwise, false. bool FileExists(string path); /// /// Opens a ZIP archive for reading at the specified path. /// /// The path to the archive to open. /// The opened ZIP archive. IZipFile OpenZipFile(string path); /// /// Opens a ZIP archive for reading from the specified stream. /// /// The stream containing the archive to open. /// The opened ZIP archive. IZipFile OpenZipFile(Stream stream); } }