Try
function DIR_EXIST
lparameters cDirPath
local temparray(1)
return adir(temparray,cDirPath,'D') > 0
There is also
directory()
but under certain circumstances might full you.
HTH
>I've used the VFP FILE() function for years to determine if a file exist but I need a function that determines if a folder (directory) exist.
>
>Is there a simple way to determine if a folder exists?
>
>Thanks,
>Robert