git-annex/Remote
Joey Hess cd076cd085
Windows: Support urls like "file:///c:/path"
That is a legal url, but parseUrl parses it to "/c:/path"
which is not a valid path on Windows. So as a workaround, use
parseURIPortable everywhere, which removes the leading slash when
run on windows.

Note that if an url is parsed like this and then serialized back
to a string, it will be different from the input. Which could
potentially be a problem, but is probably not in practice.

An alternative way to do it would be to have an uriPathPortable
that fixes up the path after parsing. But it would be harder to
make sure that is used everywhere, since uriPath is also used
when constructing an URI.

It's also worth noting that System.FilePath.normalize "/c:/path"
yields "c:/path". The reason I didn't use it is that it also
may change "/" to "\" in the path and I wanted to keep the url
changes minimal. Also noticed that convertToWindowsNativeNamespace
handles "/c:/path" the same as "c:/path".

Sponsored-By: the NIH-funded NICEMAN (ReproNim TR&D3) project
2023-03-27 13:38:02 -04:00
..
Directory improve createDirectoryUnder to allow alternate top directories 2022-08-12 12:52:37 -04:00
External Windows: Support urls like "file:///c:/path" 2023-03-27 13:38:02 -04:00
Helper Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
List auto-init autoenable=yes 2020-05-27 12:40:35 -04:00
Rsync add newtypes for QuickCheck to avoid LANG=C issues 2020-11-09 20:21:18 -04:00
WebDAV Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Adb.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
BitTorrent.hs Windows: Support urls like "file:///c:/path" 2023-03-27 13:38:02 -04:00
Borg.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Bup.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Ddar.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Directory.hs fix build warnings on windows 2023-03-21 18:41:23 -04:00
External.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
GCrypt.hs sync: Fix parsing of gcrypt::rsync:// urls that use a relative path 2023-03-23 15:20:00 -04:00
Git.hs sync: Fix parsing of gcrypt::rsync:// urls that use a relative path 2023-03-23 15:20:00 -04:00
GitLFS.hs sync: Fix parsing of gcrypt::rsync:// urls that use a relative path 2023-03-23 15:20:00 -04:00
Glacier.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
Hook.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
HttpAlso.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
List.hs start borg special remote 2020-12-18 16:03:51 -04:00
P2P.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
Rsync.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
S3.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Tahoe.hs added an optional cost= configuration to all special remotes 2023-01-12 13:42:28 -04:00
Web.hs Typo: sansative -> sensitive 2023-03-17 15:14:50 -04:00
WebDAV.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00