mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-29 20:17:45 +00:00
Specify a default tempdir for Windows
This commit is contained in:
parent
e5c19734c8
commit
6654519c7d
1 changed files with 10 additions and 0 deletions
|
@ -92,7 +92,17 @@ static THOUSANDS_SEP: char = ',';
|
|||
static NEGATIVE: char = '-';
|
||||
static POSITIVE: char = '+';
|
||||
|
||||
#[cfg(any(
|
||||
target_os = "windows",
|
||||
))]
|
||||
static DEFAULT_TMPDIR: &str = r"%USERPROFILE%\AppData\Local\Temp";
|
||||
|
||||
#[cfg(not(any(
|
||||
target_os = "windows",
|
||||
)))]
|
||||
static DEFAULT_TMPDIR: &str = r"/tmp";
|
||||
|
||||
|
||||
static DEFAULT_BUF_SIZE: usize = usize::MAX;
|
||||
|
||||
#[derive(Eq, Ord, PartialEq, PartialOrd, Clone, Copy)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue