MCPcopy Create free account
hub / github.com/DFHack/dfhack / isfile

Method isfile

library/modules/Filesystem.cpp:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164bool Filesystem::isfile(std::filesystem::path path) noexcept
165{
166 std::error_code ec;
167 // is_regular_file() also checks for existence.
168 auto r = std::filesystem::is_regular_file(path, ec);
169 if (ec)
170 return false;
171 return r;
172}
173
174bool Filesystem::isdir (std::filesystem::path path) noexcept
175{

Callers 4

get_test_statusFunction · 0.80
run-tests.pyFile · 0.80
build.pyFile · 0.80
parse_changelogFunction · 0.80

Calls

no outgoing calls

Tested by 1

get_test_statusFunction · 0.64