@@ -77,10 +77,21 @@ * archive. * @return A new, autoreleased OFTarArchive */ + (instancetype)archiveWithURI: (OFURI *)URI mode: (OFString *)mode; +/** + * @brief Creates a URI for accessing a the specified file within the specified + * tar archive. + * + * @param path The path of the file within the archive + * @param archive The URI of the archive + * @return A URI for accessing the specified file within the specified Tar + * archive + */ ++ (OFURI *)URIForFile: (OFString *)path inArchive: (OFURI *)archive; + - (instancetype)init OF_UNAVAILABLE; /** * @brief Initializes an already allocated OFTarArchive object with the * specified stream.