MCPcopy Create free account
hub / github.com/Clarionos/clarion / temp_directory

Method temp_directory

libraries/fc/src/filesystem.cpp:395–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393 }
394
395 temp_directory::temp_directory(const fc::path& p)
396 : temp_file_base(p / fc::unique_path())
397 {
398 if (fc::exists(*_path))
399 {
400 FC_THROW( "Name collision: ${path}", ("path", _path->string()) );
401 }
402 fc::create_directories(*_path);
403 }
404
405 temp_directory::temp_directory(temp_directory&& other)
406 : temp_file_base(std::move(other._path))

Callers

nothing calls this directly

Calls 4

unique_pathFunction · 0.85
existsFunction · 0.85
create_directoriesFunction · 0.85
stringMethod · 0.45

Tested by

no test coverage detected