MCPcopy Create free account
hub / github.com/alliedmodders/sourcemod / IsEntryDirectory

Method IsEntryDirectory

core/logic/LibrarySys.cpp:122–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool CDirectory::IsEntryDirectory()
123{
124#if defined PLATFORM_WINDOWS
125 return ((m_fd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY);
126#elif defined PLATFORM_POSIX
127 char temppath[PLATFORM_MAX_PATH];
128 int ret = ke::SafeSprintf(temppath, sizeof(temppath), "%s/%s", m_origpath, GetEntryName());
129 if (static_cast<size_t>(ret) >= sizeof(temppath))
130 return false;
131 return ke::file::IsDirectory(temppath);
132#endif
133}
134
135bool CDirectory::IsEntryFile()
136{

Callers 4

sm_ReadDirEntryFunction · 0.80
TryAutoloadMethod · 0.80
LoadPluginsFromDirMethod · 0.80
add_foldersFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected