mirror of
https://github.com/restic/restic.git
synced 2025-06-07 16:58:29 +00:00

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.