fs: implement fs::get_temp_dir() (Win32)

Trying to workaround issues with sparse files (#10231)
This commit is contained in:
Nekotekina 2021-05-05 10:42:12 +03:00
parent 546b52200b
commit e24ada37bf
3 changed files with 31 additions and 2 deletions

View file

@ -636,6 +636,9 @@ namespace fs
// Get common cache directory
const std::string& get_cache_dir();
// Temporary directory
const std::string& get_temp_dir();
// Unique pending file creation destined to be renamed to the destination file
struct pending_file
{