only suggest TMP as tmp dir variable on windows

TMP takes precedence over TEMP.
This commit is contained in:
Michael Eischer committed 2025-11-16 17:31:36 +01:00
1 parent 3b854d9c04
commit ffc5e9bd5c
2 files changed
+4 -5

No files matched your search

+3 -4
View File
@@ -423,10 +423,9 @@ temporary files to store data. These files will, by default, be saved to
the system's temporary directory, on Linux this is usually located in
``/tmp/``. To specify a different directory for temporary files, set
the appropriate environment variable. On non-Windows operating systems,
use the ``TMPDIR`` environment variable. On Windows, use either the
``TMP`` or ``TEMP`` environment variable. For example, to use the
directory ``/var/tmp/restic-tmp`` instead of the default, set the
environment variable as follows:
use the ``TMPDIR`` environment variable. On Windows, use the ``TMP``
environment variable. For example, to use the directory ``/var/tmp/restic-tmp``
instead of the default, set the environment variable as follows:
.. code-block:: console