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

Method create

Engine/source/platformWin32/winVolume.cpp:276–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

274}
275
276FileNodeRef Win32FileSystem::create(const Path& path, FileNode::Mode mode)
277{
278 // The file will be created on disk when it's opened.
279 if (mode & FileNode::File)
280 return new Win32File(path,_BuildFileName(mVolume,path));
281
282 // Create with default permissions.
283 if (mode & FileNode::Directory)
284 {
285 String file = PathToOS(_BuildFileName(mVolume,path));
286
287 if (::CreateDirectoryW(file.utf16(), 0))
288 return new Win32Directory(path, file);
289 }
290 return 0;
291}
292
293bool Win32FileSystem::remove(const Path& path)
294{

Callers

nothing calls this directly

Calls 3

_BuildFileNameFunction · 0.85
PathToOSFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected