class TempFile

Defined at line 16 of file ../../src/storage/volume_image/utils/fd_test_helper.h

RAII for temporary files.

Public Methods

fpromise::result<TempFile, std::string> Create ()

On Success return a |TempFile| in the system's temporary directory.

On error returns a string describing the failure reason.

Defined at line 22 of file ../../src/storage/volume_image/utils/fd_test_helper.cc

void TempFile ()

Defined at line 23 of file ../../src/storage/volume_image/utils/fd_test_helper.h

void TempFile (const TempFile & )

Defined at line 24 of file ../../src/storage/volume_image/utils/fd_test_helper.h

void TempFile (TempFile && )

Defined at line 25 of file ../../src/storage/volume_image/utils/fd_test_helper.h

TempFile & operator= (const TempFile & )

Defined at line 26 of file ../../src/storage/volume_image/utils/fd_test_helper.h

TempFile & operator= (TempFile && )

Defined at line 27 of file ../../src/storage/volume_image/utils/fd_test_helper.h

std::string_view path ()

Returns the path to the newly created file.

Defined at line 31 of file ../../src/storage/volume_image/utils/fd_test_helper.h

void ~TempFile ()

Defined at line 33 of file ../../src/storage/volume_image/utils/fd_test_helper.cc