﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
url: /reference/api/Interface.CopyEntry.md
---
# Interface: CopyEntry

Defined in: [src/features/copy.ts:8](https://github.com/rolldown/tsdown/blob/7fd0ebe7ca576f0210043cd29809a1ad0ec33410/src/features/copy.ts#L8)

## Properties

### flatten?

```ts
flatten?: boolean;
```

Defined in: [src/features/copy.ts:23](https://github.com/rolldown/tsdown/blob/7fd0ebe7ca576f0210043cd29809a1ad0ec33410/src/features/copy.ts#L23)

Whether to flatten the copied files (not preserving directory structure).

#### Default

```ts
true
```

***

### from

```ts
from: string | string[];
```

Defined in: [src/features/copy.ts:12](https://github.com/rolldown/tsdown/blob/7fd0ebe7ca576f0210043cd29809a1ad0ec33410/src/features/copy.ts#L12)

Source path or glob pattern.

***

### rename?

```ts
rename?: string | ((name, extension, fullPath) => string);
```

Defined in: [src/features/copy.ts:32](https://github.com/rolldown/tsdown/blob/7fd0ebe7ca576f0210043cd29809a1ad0ec33410/src/features/copy.ts#L32)

Change destination file or folder name.

***

### to?

```ts
to?: string;
```

Defined in: [src/features/copy.ts:17](https://github.com/rolldown/tsdown/blob/7fd0ebe7ca576f0210043cd29809a1ad0ec33410/src/features/copy.ts#L17)

Destination path.
If not specified, defaults to the output directory ("outDir").

***

### verbose?

```ts
verbose?: boolean;
```

Defined in: [src/features/copy.ts:28](ht