/// <summary> /// Retrieves a subdirectory from the input directory. /// </summary> /// <param name="dir">Directory containing the subdirectory.</param> /// <param name="path">Path to the subdirectory (can include subdirectories).</param> public static IArchiveDirectory GetDirectory(this IArchiveDirectory dir, string path) => dir.GetItem(path) as IArchiveDirectory;
/// <summary> /// Retrieves a file from the input directory. /// </summary> /// <param name="dir">Directory containing the file.</param> /// <param name="path">Path to the file (can include subdirectories).</param> public static IArchiveFile GetFile(this IArchiveDirectory dir, string path) => dir.GetItem(path) as IArchiveFile;