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

Method create

Engine/source/platformPOSIX/posixVolume.cpp:188–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186}
187
188FileNodeRef PosixFileSystem::create(const Path& path, FileNode::Mode mode)
189{
190 // The file will be created on disk when it's opened.
191 if (mode & FileNode::File)
192 return new PosixFile(path,buildFileName(_volume,path));
193
194 // Default permissions are read/write/search/executate by everyone,
195 // though this will be modified by the current umask
196 if (mode & FileNode::Directory)
197 {
198 String file = buildFileName(_volume,path);
199
200 if (mkdir(file.c_str(),S_IRWXU | S_IRWXG | S_IRWXO) == 0)
201 return new PosixDirectory(path,file);
202 }
203
204 return 0;
205}
206
207bool PosixFileSystem::remove(const Path& path)
208{

Callers

nothing calls this directly

Calls 2

buildFileNameFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected