Skip to content

Commit

Permalink
docs: Document that std::filesystem::temp_directory_path() is unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
asahilina committed Nov 19, 2024
1 parent d761fc4 commit c3e8cd8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/ProgrammingConcerns.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c3e8cd8

Please sign in to comment.