I'm currently working on a file browser in Air 2.0.
Is there a way to get the name of a drive (for example the name of the inserted cd or the name of the C: hard drive that you can enter manually)?
And the second question is:
How can I determine if a folder has another folder inside? (I want to show a directory tree and reading and checking the content of every folder takes too much time. The FileSystemTree class simply assumes that every folder is a branch, but that leads to empty folders that can be opened.)
Thanks in advance.
Ok. I figured out how to get the name of a drive: you simply got to use the new StorageVolume classes (StorageVolumeInfo.storageVolumeInfo.getStorageVolumes()) and you got the name and other properties.
The other problem is still unanswered. So I got to check the content of a folder to be sure that there is a sub folder.