revpiproject - 2022-02-16

Hi,
I am having some problem with writing a CSV file to the connect + using CodeSys.
Currently I am using the function block CSV.Init, and the FB shows either xerror "19" or "Cannot_get_file_size".
Does anyone have any idea to what the problem could be?

The following is set up to the FB CSV.init

xExecute: "TRUE";
sDirectorypath: "/root/"
sFileName: "JustTesting.csv"
sColumSeparator: ";"
rCSVWriter: "gCSVWriter" -> where gCSVWriter is set as CSV.CSVWriter; in the program var.

Also tried with many other paths, but got the same error.
Do anyone have a suggestion for a path that should work, or other alternatives for what it could be?