Exemplo n.º 1
0
 /// <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;
Exemplo n.º 2
0
 /// <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;