MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / DirectoryExists

Method DirectoryExists

Source/Engine/Platform/Unix/UnixFileSystem.cpp:142–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142bool UnixFileSystem::DirectoryExists(const StringView& path)
143{
144 struct stat fileInfo;
145 const UnixString pathANSI(*path, path.Length());
146 if (stat(pathANSI.Get(), &fileInfo) != -1)
147 {
148 return S_ISDIR(fileInfo.st_mode);
149 }
150 return false;
151}
152
153bool UnixFileSystem::DirectoryGetFiles(Array<String>& results, const String& path, const Char* searchPattern, DirectorySearchOption option)
154{

Callers

nothing calls this directly

Calls 3

statClass · 0.70
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected