forevernoob
New member
- Joined
- May 12, 2009
- Messages
- 3
- Programming Experience
- 10+
Hi Folks,
I have a function that scans a directory tree and creates a list of directories and files. For each directory I call DirectoryInfo.GetDirectories() method to get a list of children. At some point I get an exception because one of the directories has a space character at the end, and the DirectoryInfo object that is returned for it has Exists = False. Is there a way I can deal with it w/o fixing the directory name?
TIA
I have a function that scans a directory tree and creates a list of directories and files. For each directory I call DirectoryInfo.GetDirectories() method to get a list of children. At some point I get an exception because one of the directories has a space character at the end, and the DirectoryInfo object that is returned for it has Exists = False. Is there a way I can deal with it w/o fixing the directory name?
TIA
Last edited: