File plugin issue in headless client

Hi,

I am using Servoy 3.5.12 and i have created a batchprocessor that processes the files in a certain location that is on a network drive.
The location is hardcoded (\A\B).
The problem is that this piece of code:
vServerFolder = plugins.file.convertToJSFile(vFolderPath)
vResult = vServerFolder.exists()

vResult is true in the smart client but false in the headlsess client

Also for:
vFolderContent = plugins.file.getFolderContents(vFolderPath)

vFolderContent is ,even if the location exists and it is populated with files.

Any idea why this does not work in the headless client?
Many thanks in advance for the reply,
Diana

Couldn’t it be related to the user (account) running Servoy server? If the user has no access to that drive, your headless client won’t either.

Thank you Patrick for the reply.
The user that runs the Servoy server has access to that drive.
The path is hardcoded to \A\B (using server file separator), could it be that this path needs to be processed somehow before using it in the headless client?

Diana