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

Method DeleteDirectory

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

Source from the content-addressed store, hash-verified

123#endif
124
125bool UnixFileSystem::DeleteDirectory(const String& path, bool deleteContents)
126{
127#if HAS_DIRS
128 const UnixString pathANSI(*path, path.Length());
129 if (deleteContents)
130 {
131 return DeleteUnixPathTree(pathANSI.Get());
132 }
133 else
134 {
135 return rmdir(pathANSI.Get()) != 0;
136 }
137#else
138 return true;
139#endif
140}
141
142bool UnixFileSystem::DirectoryExists(const StringView& path)
143{

Callers

nothing calls this directly

Calls 3

DeleteUnixPathTreeFunction · 0.70
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected