Directory on the device

BjornF

Active Member
Licensed User
Longtime User
Is there a way of checking if a given folder exists on the device from a program on the Pc (i.e. something corresponding to rapi.DeviceFileExist() - perhaps a "rapi.DeviceDirectoryExist()"?)?

I have tried a workaround, files()=rapi.GetFiles("TheDirectory\*.*"). I had hoped that I would get an errormessage if TheDirectory does not exist, but all that happens is that the Arraylength of files() is 0 :(

All the best / Björn
 

BjornF

Active Member
Licensed User
Longtime User
Indeed it does :) that solved the problem, thank you Erel.
(Perhaps it might be a good idea to include it in the help file at the next release? i.e. "Checks whether a specific file or directory exists on the device.")

all the best / Björn
 
Top