MCPcopy Create free account
hub / github.com/JayXon/Leanify / IsDirectory

Function IsDirectory

fileio.cpp:77–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75
76#ifdef _WIN32
77bool IsDirectory(const wchar_t path[])
78{
79 DWORD fa = GetFileAttributes(path);
80 if (fa == INVALID_FILE_ATTRIBUTES)
81 {
82 return false;
83 }
84 return (fa & FILE_ATTRIBUTE_DIRECTORY) != 0;
85}
86#else
87bool IsDirectory(const char path[])
88{

Callers 1

mainFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected