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() {#getAllEntries--}
public final Iterable
Gets all entries of [WimEntry](../../com.aspose.zip/wimentry) type constituting the directory recursively.
**Returns:**
java.lang.Iterable<com.aspose.zip.WimEntry> - all entries of [WimEntry](../../com.aspose.zip/wimentry) type constituting the directory recursively
### getDirectories() {#getDirectories--}
public final List
Gets entries of [WimDirectoryEntry](../../com.aspose.zip/wimdirectoryentry) type constituting the directory.
**Returns:**
java.util.List<com.aspose.zip.WimDirectoryEntry> - entries of [WimDirectoryEntry](../../com.aspose.zip/wimdirectoryentry) type constituting the directory
### getFiles() {#getFiles--}
public final List
Gets entries of [WimFileEntry](../../com.aspose.zip/wimfileentry) type constituting the directory.
**Returns:**
java.util.List<com.aspose.zip.WimFileEntry> - entries of [WimFileEntry](../../com.aspose.zip/wimfileentry) type constituting the directory
### getFilesAndDirectories() {#getFilesAndDirectories--}
public final Iterable
Gets entries of [WimEntry](../../com.aspose.zip/wimentry) type constituting the directory.
**Returns:**
java.lang.Iterable<com.aspose.zip.WimEntry> - entries of [WimEntry](../../com.aspose.zip/wimentry) type constituting the directory