| 2120 | } |
| 2121 | |
| 2122 | void IGFD::FileManager::m_ScanDirForPathSelection(const FileDialogInternal& vFileDialogInternal, const std::string& vPath) { |
| 2123 | std::string path = vPath; |
| 2124 | |
| 2125 | if (!path.empty()) { |
| 2126 | #ifdef _IGFD_WIN_ |
| 2127 | if (path == fsRoot) path += IGFD::Utils::GetPathSeparator(); |
| 2128 | #endif // _IGFD_WIN_ |
| 2129 | |
| 2130 | ClearPathLists(); |
| 2131 | |
| 2132 | const auto& files = m_FileSystemPtr->ScanDirectory(path); |
| 2133 | for (const auto& file : files) { |
| 2134 | if (file.fileType.isDir()) { |
| 2135 | m_AddPath(vFileDialogInternal, path, file.fileNameExt, file.fileType); |
| 2136 | } |
| 2137 | } |
| 2138 | |
| 2139 | m_SortFields(vFileDialogInternal, m_PathList, m_FilteredPathList); |
| 2140 | } |
| 2141 | } |
| 2142 | |
| 2143 | void IGFD::FileManager::m_OpenPathPopup(const FileDialogInternal& vFileDialogInternal, std::vector<std::string>::iterator vPathIter) { |
| 2144 | const auto path = ComposeNewPath(vPathIter); |
nothing calls this directly
no test coverage detected