----------------------------------------------------------------------------- utility for platform::hasSubDirectory() and platform::dumpDirectories() ensures that the entry is a directory, and isnt on the ignore lists.
| 916 | // utility for platform::hasSubDirectory() and platform::dumpDirectories() |
| 917 | // ensures that the entry is a directory, and isnt on the ignore lists. |
| 918 | inline bool isGoodDirectory(const char* path) |
| 919 | { |
| 920 | char name[80]; |
| 921 | getDirectoryName(path, name); |
| 922 | return (Platform::isDirectory(path) // is a dir |
| 923 | && dStrcmp(name,".") != 0 // not here |
| 924 | && dStrcmp(name,"..") != 0 // not parent |
| 925 | && !Platform::isExcludedDirectory(name)); // not excluded |
| 926 | } |
| 927 | |
| 928 | inline bool isGoodDirectoryCache(dirent* entry) |
| 929 | { |
no test coverage detected