Repository navigation
temp_directory_path when temp dir does not exist #4579
|
When calling fs::temp_directory_path() on a clean windows machine that does not have a temp directory yet an exception is thrown with the message "not a directory". Is this the expected behavior because it is hard to recover from this error without calling native APIs to determine what the temp directory location is so it can be created. |
Answered by
dirkvdb
Apr 12, 2024
Replies: 1 comment
|
The path that does not exist seems to be present in the exception information so this makes recovery more trivial. |
0 replies
Answer selected by
StephanTLavavej
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The path that does not exist seems to be present in the exception information so this makes recovery more trivial.