MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / isDirectory

Method isDirectory

Engine/source/core/volume.cpp:948–965  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

946}
947
948bool MountSystem::isDirectory(const Path& path, FileSystemRef fsRef)
949{
950 FileNode::Attributes attr;
951
952 bool result = false;
953 if (fsRef.isNull())
954 {
955 if (getFileAttributes(path, &attr))
956 result = (attr.flags & FileNode::Directory) != 0;
957 }
958 else
959 {
960 FileNodeRef fnRef = fsRef->resolve(path);
961 if (!fnRef.isNull() && fnRef->getAttributes(&attr))
962 result = (attr.flags & FileNode::Directory) != 0;
963 }
964 return result;
965}
966
967bool MountSystem::isReadOnly(const Path& path)
968{

Callers 2

findByPatternMethod · 0.45
IsDirectoryFunction · 0.45

Calls 3

isNullMethod · 0.45
resolveMethod · 0.45
getAttributesMethod · 0.45

Tested by

no test coverage detected