MCPcopy Create free account
hub / github.com/axmolengine/axmol / getNativeWritableAbsolutePath

Method getNativeWritableAbsolutePath

core/platform/wasm/FileUtils-wasm.cpp:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74std::string FileUtilsEmscripten::getNativeWritableAbsolutePath() const
75{
76 struct stat st;
77 stat(_writablePath.c_str(), &st);
78 if (!S_ISDIR(st.st_mode))
79 {
80 mkdir(_writablePath.c_str(), 0744);
81 }
82
83 return _writablePath;
84}
85
86bool FileUtilsEmscripten::isFileExistInternal(std::string_view path) const
87{

Callers 2

enableCookiesMethod · 0.45
lazyInitMethod · 0.45

Calls 2

statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected