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

# FileCon.ProcessFileDir

## Declaration

`function ProcessFileDir : string`

### Example

```pascal
procedure OnMapEvent(var Value:Variant);
begin
  Value := Dest.FileCon.ProcessFileDir; //the exact folder the file will save to
end;
```

## Description

Returns the actual file directory (resolved from the FileDir pattern) where the input file will be read from (for file sources) or where the output file will be saved to (for file destinations).

You cannot set this value via script.
