|
Blender V4.3
|
#include "BLI_tempfile.h"#include "BLI_fileops.h"#include "BLI_path_utils.hh"#include "BLI_string.h"Go to the source code of this file.
Functions | |
| bool | BLI_temp_directory_path_copy_if_valid (char *tempdir, const size_t tempdir_maxncpy, const char *dirpath) |
| void | BLI_temp_directory_path_get (char *tempdir, const size_t tempdir_maxncpy) |
| bool BLI_temp_directory_path_copy_if_valid | ( | char * | tempdir, |
| const size_t | tempdir_maxncpy, | ||
| const char * | dirpath ) |
Definition at line 11 of file tempfile.cc.
References BLI_is_dir(), BLI_path_abs_from_cwd(), BLI_path_slash_ensure(), BLI_strncpy(), and UNLIKELY.
Referenced by BLI_temp_directory_path_get().
| void BLI_temp_directory_path_get | ( | char * | tempdir, |
| const size_t | tempdir_maxncpy ) |
Get the path to a directory suitable for temporary files.
The return path is guaranteed to exist and to be a directory, as well as to contain a trailing directory separator.
At maximum the tempdir_maxncpy number of characters is written to the tempdir. The directory path is always null-terminated.
Definition at line 53 of file tempfile.cc.
References ARRAY_SIZE, BLI_getenv(), BLI_strncpy(), and BLI_temp_directory_path_copy_if_valid().
Referenced by blender::tests::ChangeWorkingDirectoryTest::make_pseudo_unique_temp_filename(), blender::tests::FileOpsTest::SetUp(), blender::tests::TEST(), and where_is_temp().