WimDirectoryEntry
Inheritance: java.lang.Object, com.aspose.zip.WimEntry
public final class WimDirectoryEntry extends WimEntry
Represents a single directory within wim archive.
Methods
| Method | Description |
|---|---|
| extractToDirectory(String destinationDirectory) | Extracts all the files in the current directory to the directory provided. |
| getAllEntries() | Gets all entries of WimEntry type constituting the directory recursively. |
| getDirectories() | Gets entries of WimDirectoryEntry type constituting the directory. |
| getFiles() | Gets entries of WimFileEntry type constituting the directory. |
| getFilesAndDirectories() | Gets entries of WimEntry type constituting the directory. |
extractToDirectory(String destinationDirectory)
public final void extractToDirectory(String destinationDirectory)
Extracts all the files in the current directory to the directory provided.
try (WimArchive archive = new WimArchive("archive.wim")) {
archive.getImages().get_Item(0).getRootDirectory().extractToDirectory("C:\\extracted");
}
Parameters:
| Parameter | Type | Description |
|---|---|---|
| destinationDirectory | java.lang.String | the path to the directory to place the extracted files in. |
If the directory does not exist, it will be created |
getAllEntries()
public final Iterable<WimEntry> getAllEntries()
Gets all entries of WimEntry type constituting the directory recursively.
Returns: java.lang.Iterable<com.aspose.zip.WimEntry> - all entries of WimEntry type constituting the directory recursively
getDirectories()
public final List<WimDirectoryEntry> getDirectories()
Gets entries of WimDirectoryEntry type constituting the directory.
Returns: java.util.List<com.aspose.zip.WimDirectoryEntry> - entries of WimDirectoryEntry type constituting the directory
getFiles()
public final List<WimFileEntry> getFiles()
Gets entries of WimFileEntry type constituting the directory.
Returns: java.util.List<com.aspose.zip.WimFileEntry> - entries of WimFileEntry type constituting the directory
getFilesAndDirectories()
public final Iterable<WimEntry> getFilesAndDirectories()
Gets entries of WimEntry type constituting the directory.
Returns: java.lang.Iterable<com.aspose.zip.WimEntry> - entries of WimEntry type constituting the directory