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

Method createFile

Engine/source/core/volume.cpp:660–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660FileRef MountSystem::createFile(const Path& path)
661{
662 Path np = _normalize(path);
663 FileSystemRef fs = _getFileSystemFromList(np);
664
665 if (fs && fs->isReadOnly())
666 {
667 _log(String::ToString("Cannot create file %s, filesystem is read-only", path.getFullPath().c_str()));
668 return NULL;
669 }
670
671 if (fs != NULL)
672 return static_cast<File*>(fs->create(np,FileNode::File).getPointer());
673 return NULL;
674}
675
676DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs)
677{

Callers 1

CreateFileFunction · 0.80

Calls 4

isReadOnlyMethod · 0.45
c_strMethod · 0.45
getPointerMethod · 0.45
createMethod · 0.45

Tested by

no test coverage detected