---
title: "File Exporter"
description: "EMILY.RPA File Exporter module: export files from the working folder to a target folder, with %FILENAME% variable support."
source: https://docs.emily.tips/en/wap/repo2dir
---

# File Exporter

Export files from the working folder. `FOLDER` is the target export folder — click the "**PICK**" button to specify the file path or use the **%FILENAME%** variable.

![](https://docs.emily.tips/img/en/wap-041.png)

## No-Code Editor

Provides No-Code commands such as: "**Filter Files Before Export**". For example, export files from the working folder whose filename contains `report.pdf` to the desktop.

![](https://docs.emily.tips/img/en/wap-042.png)

## Low-Code Editor

![](https://docs.emily.tips/img/en/wap-043.png)

### input Array

Each element in the input array represents a file in the working folder, where src is the original filename and dst is the target filename.

```javascript
// Print the name of each file in the working folder
input.forEach((file) => console.log(file.src))
```

### output Array

Each element object in the output array represents a file to be exported from the working folder, where src is the original filename and dst is the target filename.

```javascript
// Export all files from the working folder, prepending a fixed string 'auto' to each filename
input.forEach((file) => {
  output.push({src: file.src, dst: 'auto-'+file.src})
})
```
