x_fs_get_temp_folder
Get the system temporary folder path.
X_FILESYSTEM_API size_t x_fs_get_temp_folder(XFSPath *out);
Parameters
XFSPath *out
- Output path buffer to receive the temp folder.
Returns
Length of the written path (in bytes/chars, excluding terminator), or 0 on failure.
x_fs_make_temp_directory
Create a temporary directory with the given prefix.
X_FILESYSTEM_API bool x_fs_make_temp_directory(
const char *prefix,
XFSPath *out_path
);
Parameters
const char *prefix
- Prefix to use for the temporary directory name.
XFSPath *out_path
- Output path receiving the created temp directory path.
Returns
True on success, false on failure.
x_fs_make_temp_file
Create a temporary file with the given prefix.
X_FILESYSTEM_API bool x_fs_make_temp_file(
const char *prefix,
XFSPath *out_path
);
Parameters
const char *prefix
- Prefix to use for the temporary file name.
XFSPath *out_path
- Output path receiving the created temp file path.
Returns
True on success, false on failure.