IFileList will return the "." and ".." special directory entries which represent the current working directory and the parent of the working directory. My complaint/question/bug is i think there is little or no need for file list to return these by default.
In most cases the user is looking for a file ( by extension or some other wildcard ) in the directory and recursing thru folders. Unless they specificly deal with these special entries they will end up with broken code. In that respect i think that the default behavior should be to not return them in the file list.
I propose the IFileSystem API be changed to...
Code: Select all
virtual IFileList* createFileList( bool workingDirectories ) = 0;