# File plugin issue in headless client

**URL:** <https://forum.servoy.com/t/file-plugin-issue-in-headless-client/12800>\
**Category:** Classic Servoy\
**Created:** [September 2, 2010, 12:01pm UTC](https://forum.servoy.com/t/file-plugin-issue-in-headless-client/12800 "2010-09-02T12:01:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![diana.bodnarescu](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@diana.bodnarescu](https://forum.servoy.com/u/diana.bodnarescu)\
**Post date:** [September 2, 2010, 12:01pm UTC](https://forum.servoy.com/t/file-plugin-issue-in-headless-client/12800/1 "2010-09-02T12:01:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patrick](https://avatars.discourse-cdn.com/v4/letter/p/b2d939/32.png) [@patrick](https://forum.servoy.com/u/patrick)\
**Post date:** [September 2, 2010, 12:36pm UTC](https://forum.servoy.com/t/file-plugin-issue-in-headless-client/12800/2 "2010-09-02T12:36:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![diana.bodnarescu](https://avatars.discourse-cdn.com/v4/letter/d/a88e57/32.png) [@diana.bodnarescu](https://forum.servoy.com/u/diana.bodnarescu)\
**Post date:** [September 2, 2010, 2:03pm UTC](https://forum.servoy.com/t/file-plugin-issue-in-headless-client/12800/3 "2010-09-02T14:03:57Z")

</div>

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
