| 265 | } |
| 266 | |
| 267 | FileNodeRef 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 | |
| 284 | bool Win32FileSystem::remove(const Path& path) |
| 285 | { |
nothing calls this directly
no test coverage detected