---
url: >-
  /statelake/scripting-reference/classes/file-connection-class-tflofilecon/filecon.processfiledir.md
---

# FileCon.ProcessFileDir

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.

**Declaration**: function ProcessFileDir : string

An example.

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