| 120 | } |
| 121 | |
| 122 | bool 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 | |
| 135 | bool CDirectory::IsEntryFile() |
| 136 | { |
no outgoing calls
no test coverage detected