Creating a file browser
Hello everyone and thanks for your help in advance. I am developing an application that requires file browser functionality. I am running into problems in that some folders will have both subfolders and files. I realize that DirectoryItems returns an array of all items in the folder. But I need to be able to differentiate between folders and files. I know that I can use the GetDirectories and GetFiles methods, but wasn't sure if there was a better way to go about this. Any help would be greatly appreciated. Thanks.
|