MCPcopy Create free account
hub / github.com/XorTroll/Goldleaf / IsFile

Method IsFile

Goldleaf/source/fs/fs_StdExplorer.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 bool StdExplorer::IsFile(const std::string &path) {
108 const auto full_path = this->MakeFull(path);
109
110 struct stat st;
111 return (stat(full_path.c_str(), &st) == 0) && (st.st_mode & S_IFREG);
112 }
113
114 bool StdExplorer::IsDirectory(const std::string &path) {
115 const auto full_path = this->MakeFull(path);

Callers 9

StartCopyMethod · 0.45
OnInputMethod · 0.45
OnFileSelectedMethod · 0.45
OnDirectorySelectedMethod · 0.45
StartUpdateSearchMethod · 0.45
UpdateClipboardFunction · 0.45
PathForResourceMethod · 0.45
IsFileBinaryMethod · 0.45

Calls 2

statClass · 0.85
MakeFullMethod · 0.80

Tested by

no test coverage detected