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

Method chdir

library/modules/Filesystem.cpp:73–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73bool Filesystem::chdir (std::filesystem::path path) noexcept
74{
75 Filesystem::init();
76 try
77 {
78 std::filesystem::current_path(path);
79 return true;
80 }
81 catch (std::filesystem::filesystem_error&)
82 {
83 return false;
84 }
85}
86
87std::filesystem::path Filesystem::getcwd ()
88{

Callers 2

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

Calls 1

initFunction · 0.50

Tested by

no test coverage detected