| 274 | } |
| 275 | |
| 276 | FileNodeRef 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 | |
| 293 | bool Win32FileSystem::remove(const Path& path) |
| 294 | { |
nothing calls this directly
no test coverage detected