mirror of
https://github.com/restic/restic.git
synced 2026-06-07 01:19:44 +00:00
4dc746dac2
The method of determining if a repository exists doesn't work on Windows, since the "url.Scheme" will contain the drive letter - "c" in "c:\backup", so as a first step we check if the URL can be opened as a file, and if so, we assume it is a 'local' type repository.