MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / isNativePathDirectory

Method isNativePathDirectory

source/io/fs.cpp:315–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313}
314
315bool Fs::isNativePathDirectory(const BString& path) {
316 PLATFORM_STAT_STRUCT buf = {};
317
318#ifdef BOXEDWINE_MSVC
319 if (path.length()<3) {
320 BString msvc = path + "\\";
321 if (PLATFORM_STAT(msvc.c_str(), &buf)==0) {
322 return S_ISDIR(buf.st_mode);
323 }
324 }
325#endif
326 if (PLATFORM_STAT(path.c_str(), &buf)==0) {
327 return S_ISDIR(buf.st_mode);
328 }
329 return false;
330}
331
332U32 Fs::makeLocalDirs(const BString& path) {
333 std::shared_ptr<FsNode> lastNode;

Callers

nothing calls this directly

Calls 2

lengthMethod · 0.45
c_strMethod · 0.45

Tested by

no test coverage detected