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

Method createDirectory

Engine/source/core/volume.cpp:519–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs)
520{
521 Path np = _normalize(path);
522 if (fs.isNull())
523 fs = _getFileSystemFromList(np);
524
525 if (fs && fs->isReadOnly())
526 {
527 _log(String::ToString("Cannot create directory %s, filesystem is read-only", path.getFullPath().c_str()));
528 return NULL;
529 }
530
531 if (fs != NULL)
532 return static_cast<Directory*>(fs->create(np,FileNode::Directory).getPointer());
533 return NULL;
534}
535
536FileRef MountSystem::openFile(const Path& path,File::AccessMode mode)
537{

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