---
title: "AppleArchive.CreateEntries"
url: "https://reference.aspose.com/zip/net/aspose.zip.apple/applearchive/createentries/"
product: "Aspose.ZIP for .NET API Reference"
description: "AppleArchive method. Adds to the archive all files and directories recursively in the directory given"
---

## AppleArchive.CreateEntries method

Adds to the archive all files and directories recursively in the directory given.

```csharp
public AppleArchive CreateEntries(DirectoryInfo directory, bool includeRootDirectory = true)
```

| Parameter | Type | Description |
| --- | --- | --- |
| directory | DirectoryInfo | Directory to compress. |
| includeRootDirectory | Boolean | Indicates whether to include the root directory itself or not. |

### Return Value

The archive with entries composed.

### See Also

* class [AppleArchive](../)
* namespace [Aspose.Zip.Apple](../../applearchive/)
* assembly [Aspose.Zip](../../../)


