restic/internal
Michael Pratt 2133869127 cache: OS-specific cache directories
Windows, and to a lesser extent OS X, don't conform to XDG and have
their own preferred locations for caches.

On Windows, use %LOCALAPPDATA%/restic (i.e., ~/AppData/Local/restic). I
can't find authoritative documentation from Microsoft recommending
specifically which of %APPDATA%, %LOCALAPPDATA%, and %TEMP% should be
used for caches, but %LOCALAPPDATA% is where browsers store their
caches, so it seems like a good fit.

On OS X, use ~/Library/Caches/restic, which is recommended by the Apple
documentation. They do suggest using the application "bundle identifier"
as the base folder name, but restic doesn't have one, so I just used
"restic".
2017-09-27 21:16:22 -07:00
..
archiver Merge pull request #1243 from restic/improve-error-reporting 2017-09-16 14:54:30 +02:00
backend gs: allow backend creation without storage.buckets.get 2017-09-25 22:25:51 -07:00
cache cache: OS-specific cache directories 2017-09-27 21:16:22 -07:00
checker tests updated 2017-09-09 13:26:35 +02:00
crypto internal/crypto: small simplifications 2017-08-29 00:30:06 +02:00
debug Run goimports 2017-07-23 14:21:03 +02:00
errors Moves files 2017-07-23 14:19:13 +02:00
filter filter: document recursive wildcards 2017-09-04 14:38:48 -07:00
fs local: Fix creating data dirs 2017-09-11 21:48:25 +02:00
fuse fuse: added symlink 'latest' to snapshots-dir 2017-09-21 16:41:20 +02:00
hashing Moves files 2017-07-23 14:19:13 +02:00
index Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
list Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
migrations Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
mock Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
options Run goimports 2017-07-23 14:21:03 +02:00
pack Move restic package to internal/restic 2017-07-24 17:43:32 +02:00
pipe Run goimports 2017-07-23 14:21:03 +02:00
repository repo: Automatically cache tree-only pack files 2017-09-24 23:11:23 +02:00
restic Correct debug message 2017-09-25 14:35:37 +02:00
test internal: check error before deferring file Close() 2017-08-13 19:28:13 +02:00
walk tests updated 2017-09-09 13:26:35 +02:00
worker Run goimports 2017-07-23 14:21:03 +02:00