---
url: /flow/guide/scripting-reference/classes/file-connection/filecon.auditdir.md
---

# FileCon.AuditDir

## Declaration

`property AuditDir: string`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Source.FileCon.AuditDir; //The directory that the file will be moved to if successful
end;
```

## Description

Returns the file directory pattern used to set the audit folder where the file is moved to if processing is successful.

When the Source data definition is a File Definition you can use this property to modify the folder the input file is moved to after successful processing.

The AuditDir property is a pattern therefore you can set it directly to the folder you desire, or you can include [Tags](/flow/guide/tag-reference/) within the name. Tags will be resolved when the file is being moved after successful processing. AuditDir includes a trailing backslash.

If the resolved AuditDir matches the resolved FileDir, then the file will not be moved. (Also see [DoMoveToAudit](/flow/guide/scripting-reference/classes/file-connection/filecon.domovetoaudit).)
