| 259 | } |
| 260 | |
| 261 | File *FilesystemDisk::open_temporary(DynamicString &absolute_path) |
| 262 | { |
| 263 | TempAllocator256 ta; |
| 264 | DynamicString tmp_basename(ta); |
| 265 | tmp_basename.from_guid(guid::new_guid()); |
| 266 | tmp_basename += ".tmp"; |
| 267 | this->absolute_path(absolute_path, tmp_basename.c_str()); |
| 268 | |
| 269 | FileDisk *file = CE_NEW(*_allocator, FileDisk)(); |
| 270 | file->open(absolute_path.c_str(), FileOpenMode::WRITE); |
| 271 | return file; |
| 272 | } |
| 273 | |
| 274 | void FilesystemDisk::close(File &file) |
| 275 | { |
no test coverage detected