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

Method createFile

Engine/source/core/volume.cpp:503–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501}
502
503FileRef MountSystem::createFile(const Path& path)
504{
505 Path np = _normalize(path);
506 FileSystemRef fs = _getFileSystemFromList(np);
507
508 if (fs && fs->isReadOnly())
509 {
510 _log(String::ToString("Cannot create file %s, filesystem is read-only", path.getFullPath().c_str()));
511 return NULL;
512 }
513
514 if (fs != NULL)
515 return static_cast<File*>(fs->create(np,FileNode::File).getPointer());
516 return NULL;
517}
518
519DirectoryRef MountSystem::createDirectory(const Path& path, FileSystemRef fs)
520{

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