| 313 | } |
| 314 | |
| 315 | bool 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 | |
| 332 | U32 Fs::makeLocalDirs(const BString& path) { |
| 333 | std::shared_ptr<FsNode> lastNode; |