MCPcopy Create free account
hub / github.com/aiekick/ImGuiFileDialog / IsDirectory

Method IsDirectory

ImGuiFileDialog.cpp:818–825  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

816 return res;
817 }
818 bool IsDirectory(const std::string& vFilePathName) override {
819 DIR* pDir = opendir(vFilePathName.c_str());
820 if (pDir) {
821 (void)closedir(pDir);
822 return true;
823 }
824 return false;
825 }
826 void GetFileDateAndSize(const std::string& vFilePathName, const IGFD::FileType& vFileType, std::string& voDate, size_t& voSize) override {
827 struct stat statInfos{};
828 int32_t result{};

Callers

nothing calls this directly

Calls 2

opendirFunction · 0.85
closedirFunction · 0.85

Tested by

no test coverage detected