News blog

What is Servoy?

Getting Started

Comparison Servoy/VFP




Code Reference


VFP2Servoy Toolkit



Contact / feedback















DIRECTORY() - plugins.File

Determines if the specified directory exists. Also the nFlags parameter can be used to differentiate in behaviour between normal directories and hidden directories.


VFP code example

? DIRECTORY("c:\temp\")   && .T. if the directory exists and is not hidden
? DIRECTORY("c:\temp\",0) && .T. if the directory exists and is not hidden
? DIRECTORY("c:\temp\",1) && .F. if the directory exists and is hidden


Servoy code example

var fs = plugins.file.convertToJSFile("c:\\temp\\");
// true if file exists
// true if file is hidden

// alternatively:

globals.DIRECTORY("c:\\temp\\");    // true if exists and not hidden
globals.DIRECTORY("c:\\temp\\",0);  // true if exists and not hidden
globals.DIRECTORY("c:\\temp\\",1);  // false if exists and is hidden

Note: DIRECTORY() is a function of the VFP2Servoy Toolkit



External resources:


vfp plugin


ServoyWorld 2012 pics


Official Servoy website


Ken Levy on Servoy


Servoy info


Servoy Forum


Servoy Documentation © 2010-2012 • All rights reserved • Contact: