Determines if the given path points to a directory or file. @param p_Path Path to check. @return true if path points to a directory.
| 78 | // @return true if path points to a directory. |
| 79 | // |
| 80 | bool PluginUtils::IsDirectory(const std::wstring& p_Path) noexcept |
| 81 | { |
| 82 | const DWORD attribs = ::GetFileAttributesW(p_Path.c_str()); |
| 83 | return attribs != INVALID_FILE_ATTRIBUTES && |
| 84 | (attribs & FILE_ATTRIBUTE_DIRECTORY) == FILE_ATTRIBUTE_DIRECTORY; |
| 85 | } |
| 86 | |
| 87 | // |
| 88 | // Given a path to a file or folder, will return the path to its |
nothing calls this directly
no outgoing calls
no test coverage detected