views:

142

answers:

1

Adobe Air (2.0) how to check if folder exists? (like folder C:\Program Files (x86) on windows) (code example needed, please)

+1  A: 

I think you can use the following functions of the File class:

var folder:File = File.userDirectory.resolvePath(folderPath);
folder.isDirectory();

The isDirectory() function will return a Boolean depending on whether or not that folder exists. Hope that helps,

debu

debu