MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / isDirectory

Method isDirectory

src/common/ScanDir.cpp:149–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149bool ScanDir::isDirectory()
150{
151#if defined(_WIN32)
152 return (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) != 0;
153#elif defined(HAVE_STRUCT_DIRENT_D_TYPE) && !defined(LSB_BUILD)
154 return (data->d_type == DT_DIR);
155#else
156 struct STAT buf;
157
158 if (os_utils::stat(getFilePath(), &buf))
159 return false;
160
161 return S_ISDIR (buf.st_mode);
162#endif
163}
164
165bool ScanDir::isDots()
166{

Callers 1

wildCardsMethod · 0.80

Calls 1

statClass · 0.70

Tested by

no test coverage detected