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

Method createDirectory

Engine/source/core/volume.cpp:676–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

674}
675
676DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs)
677{
678 Path np = _normalize(path);
679 if (fs.isNull())
680 fs = _getFileSystemFromList(np);
681
682 if (fs && fs->isReadOnly())
683 {
684 _log(String::ToString("Cannot create directory %s, filesystem is read-only", path.getFullPath().c_str()));
685 return NULL;
686 }
687
688 if (fs != NULL)
689 return static_cast<Directory*>(fs->create(np,FileNode::Directory).getPointer());
690 return NULL;
691}
692
693FileRef MountSystem::openFile(const Path& path,File::AccessMode mode)
694{

Callers 1

CreateDirectoryFunction · 0.80

Calls 5

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

Tested by

no test coverage detected