WimDirectoryEntry

Inheritance: java.lang.Object, com.aspose.zip.WimEntry

public final class WimDirectoryEntry extends WimEntry

Representerar en enskild katalog i wim-arkivet.

Metoder

MetodBeskrivning
extractToDirectory(String destinationDirectory)Extraherar alla filer i den aktuella katalogen till den angivna katalogen.
getAllEntries()Hämtar alla poster av typen WimEntry som utgör katalogen rekursivt.
getDirectories()Hämtar poster av typen WimDirectoryEntry som utgör katalogen.
getFiles()Hämtar poster av typen WimFileEntry som utgör katalogen.
getFilesAndDirectories()Hämtar poster av typen WimEntry som utgör katalogen.

extractToDirectory(String destinationDirectory)

public final void extractToDirectory(String destinationDirectory)

Extraherar alla filer i den aktuella katalogen till den angivna katalogen.

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 getAllEntries()



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 getDirectories()



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 getFiles()



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 getFilesAndDirectories()



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