MCPcopy Create free account
hub / github.com/FastLED/FastLED / createDirectory

Function createDirectory

src/platforms/stub/fs_stub.hpp:157–163  ·  view source on GitHub ↗

Static test utility functions for file/directory management These are only available on the stub/test platform

Source from the content-addressed store, hash-verified

155 // Static test utility functions for file/directory management
156 // These are only available on the stub/test platform
157 static bool createDirectory(const fl::string& path) FL_NOEXCEPT {
158#ifdef FL_IS_WIN
159 return _mkdir(path.c_str()) == 0 || errno == EEXIST;
160#else
161 return mkdir(path.c_str(), 0755) == 0 || errno == EEXIST;
162#endif
163 }
164
165 static bool removeDirectory(const fl::string& path) FL_NOEXCEPT {
166#ifdef FL_IS_WIN

Callers 4

FL_TEST_FILEFunction · 0.85
FilebufTestGuardMethod · 0.85
TestDirGuardMethod · 0.85
FL_TEST_FILEFunction · 0.85

Calls 1

c_strMethod · 0.45

Tested by 1

TestDirGuardMethod · 0.68