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

Method isDirectory

Engine/source/core/volume.cpp:795–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

793}
794
795bool MountSystem::isDirectory(const Path& path, FileSystemRef fsRef)
796{
797 FileNode::Attributes attr;
798
799 if (fsRef.isNull())
800 {
801 if (getFileAttributes(path,&attr))
802 return attr.flags & FileNode::Directory;
803 return false;
804 }
805 else
806 {
807 FileNodeRef fnRef = fsRef->resolve(path);
808 if (fnRef.isNull())
809 return false;
810
811 FileNode::Attributes attr;
812 if (fnRef->getAttributes(&attr))
813 return attr.flags & FileNode::Directory;
814 return false;
815 }
816}
817
818bool MountSystem::isReadOnly(const Path& path)
819{

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