Commit Graph
9 Commits
Author SHA1 Message Date
Kenneth Hsu 8810e0130d Make string comparisons use ordinal (binary) sort rules.
These string comparisons should not be culture-aware.
2017-11-26 11:19:54 -08:00
Tyler Gill 83a1dcfb64 Replace all instances of InvariantCultureIgnoreCase with OrdinalIgnoreCase in string comparisons.
InvariantCulture is useful when comparing / sorting human language strings in a culturely correct way. It handles things like accented letters in a way that makes sense to humans (e.g., 'a' should be sorted next to 'á', rather than after 'z').
Ordinal looks just at the raw code points of the characters. As such, it is recommended for use in cases when comparing system strings (file paths, command line parameters, config settings, etc.). Since it doesn't need to use the culture specific sorting rules, this method can often be faster.

For more information, see https://stackoverflow.com/questions/492799/difference-between-invariantculture-and-ordinal-string-comparison (and other related questions)
2017-09-18 23:55:08 -06:00
Kenneth Skovhede 0c68daff6c Fixed all whitespace to be 4 spaces instead of tabs 2016-09-15 11:39:27 +02:00
Tim Mylemans 9a2cc73983 Fixed multiple issues regarding listing folders and drives
Fixed: Listing drives on Windows now work if you have 1 or more drives
that are 'not ready' or when a drive' details could not be retrieved
while building the list (such entries are simply ignored)
Fixed: Trying to 'expand' a folder using the picker that became
unavailable in the meanwhile will now properly show a client side error
(instead of silently fail)
2016-03-30 10:15:20 +02:00
Kenneth Skovhede 2c8cac395e Show drive labels in UI on Windows.
This fixes #1610.
2016-03-13 14:19:55 +01:00
Kenneth Skovhede 3dc91014b8 Added filesystem validation to also check for files 2015-08-18 22:45:15 +02:00
Kenneth Skovhede fe1f349f78 Fixes and extensions to the REST API 2015-08-12 12:15:21 +02:00
Kenneth Skovhede 6dac0f3c2e Fixed an invalid line-ending character 2015-08-05 13:51:56 +02:00
Kenneth Skovhede 1f35824317 Converted to REST based API, with a wrapper layer for control.cgi so the current UI still works. 2015-07-30 14:31:27 +02:00