git-annex/Assistant/WebApp/Configurators
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
..
AWS.hs add searchPathContents 2021-02-02 19:06:15 -04:00
Delete.hs finished this stage of the RawFilePath conversion 2020-11-04 14:20:37 -04:00
Edit.hs sync: Fix parsing of gcrypt::rsync:// urls that use a relative path 2023-03-23 15:20:00 -04:00
Fsck.hs Typo: recurrance -> recurrence 2023-03-17 15:14:54 -04:00
IA.hs rename to avoid warning 2021-10-18 16:25:00 -04:00
Local.hs Windows: Support long filenames in more (possibly all) of the code 2023-03-01 15:55:58 -04:00
Pairing.hs use programPath consistently, not readProgramFile 2020-03-30 16:06:27 -04:00
Preferences.hs prevent numcopies or mincopies being configured to 0 2022-03-28 15:20:34 -04:00
Ssh.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Unused.hs
Upgrade.hs removed the old Android app 2018-10-13 01:41:11 -04:00
WebDAV.hs Windows: Support urls like "file:///c:/path" 2023-03-27 13:38:02 -04:00