MCPcopy Create free account
hub / github.com/GarageGames/Torque2D / isGoodDirectory

Function isGoodDirectory

engine/source/platformAndroid/AndroidFileio.cpp:918–926  ·  view source on GitHub ↗

----------------------------------------------------------------------------- utility for platform::hasSubDirectory() and platform::dumpDirectories() ensures that the entry is a directory, and isnt on the ignore lists.

Source from the content-addressed store, hash-verified

916// utility for platform::hasSubDirectory() and platform::dumpDirectories()
917// ensures that the entry is a directory, and isnt on the ignore lists.
918inline 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
928inline bool isGoodDirectoryCache(dirent* entry)
929{

Callers 1

hasSubDirectoryMethod · 0.85

Calls 2

getDirectoryNameFunction · 0.85
dStrcmpFunction · 0.70

Tested by

no test coverage detected