From c3e8cd8d30146a914a1e91140719acbf8fcb7cee Mon Sep 17 00:00:00 2001 From: Asahi Lina Date: Wed, 20 Nov 2024 02:05:32 +0900 Subject: [PATCH] docs: Document that std::filesystem::temp_directory_path() is unsafe --- docs/ProgrammingConcerns.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/ProgrammingConcerns.md b/docs/ProgrammingConcerns.md index c43c28a75e..5e8d8d6726 100644 --- a/docs/ProgrammingConcerns.md +++ b/docs/ProgrammingConcerns.md @@ -79,6 +79,9 @@ Use `FHU::Filesystem::GetFilename` instead. #### std::filesystem::copy_file Use `FHU::Filesystem::CopyFile` instead. +#### std::filesystem::temp_directory_path +See `GetTempFolder()` in `FEXServerClient.cpp` (split/move to `FHU::Filesystem` if needed by other users). + ### `std::fstream` This API always allocates memory and should be avoided. Use a combination of open and fextl::string APIs instead of fstream.