MCPcopy Create free account
hub / github.com/GPUOpen-Tools/compressonator / CMP_IsHidden

Function CMP_IsHidden

applications/_plugins/common/cmp_fileio.cpp:245–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245bool CMP_IsHidden(const std::string& fullPath)
246{
247#ifdef _WIN32
248 bool IsHidden = false;
249 DWORD Result = GetFileAttributesA(fullPath.c_str());
250 if (Result != 0xFFFFFFFF)
251 {
252 IsHidden = !!(Result & FILE_ATTRIBUTE_HIDDEN);
253 }
254
255 return IsHidden;
256#else
257#if defined _CMP_CPP17_ || defined _CMP_CPP14_
258 sfs::path path(fullPath);
259 if (path.filename().string().find(".") == 0)
260 return true;
261#else
262 return false;
263#endif
264#endif
265}
266
267std::string CMP_GetFullPath(std::string file)
268{

Callers 2

GetFilesInSubdirectoryFunction · 0.85
fileio_test.cppFile · 0.85

Calls 2

findMethod · 0.80
stringMethod · 0.45

Tested by

no test coverage detected