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

Method create

Engine/source/platformWin32/winVolume.cpp:267–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

265}
266
267FileNodeRef Win32FileSystem::create(const Path& path, FileNode::Mode mode)
268{
269 // The file will be created on disk when it's opened.
270 if (mode & FileNode::File)
271 return new Win32File(path,_BuildFileName(mVolume,path));
272
273 // Create with default permissions.
274 if (mode & FileNode::Directory)
275 {
276 String file = PathToOS(_BuildFileName(mVolume,path));
277
278 if (::CreateDirectoryW(file.utf16(), 0))
279 return new Win32Directory(path, file);
280 }
281 return 0;
282}
283
284bool Win32FileSystem::remove(const Path& path)
285{

Callers

nothing calls this directly

Calls 3

_BuildFileNameFunction · 0.85
PathToOSFunction · 0.85
utf16Method · 0.45

Tested by

no test coverage detected