Use os.TempDir() for temporary directory in default path

This commit is contained in:
Enrico204
2021-09-12 21:27:45 +02:00
committed by Michael Eischer
parent 1172d7e068
commit 223520b964
3 changed files with 10 additions and 2 deletions
+8
View File
@@ -0,0 +1,8 @@
Bugfix: Use platform-specific temporary directory in default path
Instead of using hardcoded value for temporary directory, rest-server now uses
Go standard library functions to retrieve the temporary directory path for the
current platform.
https://github.com/restic/rest-server/issues/157
https://github.com/restic/rest-server/pull/158