As my AIR Desktop Gallery should receive its content from my machine it needs to know where to look for albums and photos.

To build a standard for it I would say that the app should create its own directory in “My Documents” (Win) or “Documents” (Mac) with a sub-directory “photo” which contains agian directories for each album. With this I can easily create albums on the OS level. E.g. new folder (album) containing all images.

Ok, how can we achieve this? First of all the app should check if there is already the app directory. Secondly, if there isnt any then create the directory structure.

To check if there is already the app directory I do it like this.
check and create directories
Sure the functions could be more general but for the moment it works. After getting the app up-and-running I take care of the codes beauty.