diff --git a/DiscImageChef.Archives/IArchive.cs b/DiscImageChef.Archives/IArchive.cs index ea7be0622..0e849fecc 100644 --- a/DiscImageChef.Archives/IArchive.cs +++ b/DiscImageChef.Archives/IArchive.cs @@ -120,6 +120,18 @@ namespace DiscImageChef.Archives /// The file name, with (relative) path string GetFilename(int entryNumber); + /// + /// Gets the entry number for a particular file path in the archive. fileName is + /// the relative path of the file in the archive. If the file cannot be found, -1 is returned. + /// + /// + /// The path should be relative (no leading slash), using regular slashes as path separator, and be + /// normalized, i.e. no "foo//bar" or "foo/../bar" path components. + /// + /// The relative path for which to get the entry number. + /// The number of the entry corresponding to the given path, or -1 if the path does not exist. + int GetEntryNumber(string fileName); + /// /// Gets the attributes of a file or directory. /// @@ -134,7 +146,7 @@ namespace DiscImageChef.Archives /// /// The entry in the archive for which to retreive the list of attributes. /// List of extended attributes, alternate data streams and forks. - List GetXAttr(int entryNumber); + List GetXAttrs(int entryNumber); /// /// Reads an extended attribute, alternate data stream or fork from the given file. @@ -143,7 +155,7 @@ namespace DiscImageChef.Archives /// The entry in the archive for which to retreive the XAttr. /// Extended attribute, alternate data stream or fork name. /// Buffer with the XAttr data. - byte[] GetXattr(int entryNumber, string xattr); + byte[] GetXAttr(int entryNumber, string xattr); /// /// Gets information about an entry in the archive.