Commit Graph
13 Commits
Author SHA1 Message Date
Kenneth Hsu 8c0128b0f9 Provide missing value to format item. 2018-05-12 17:06:12 -07:00
vnau 62a7901aca Compression modules refactored to work with streams instead of filenames;
Added unit test to check compression reversibility
2017-12-25 04:12:19 +07:00
Kenneth Hsu 5fb1958ceb Remove redundant calls to ToString. 2017-11-26 15:44:34 -08:00
Tyler Gill 38883285ee Change IBackend.List() to return IEnumerable instead of List
By changing to IEnumerable, it is possible to iterate only a portion of the list, which is useful when not all entries are needed (e.g., when testing a connection).
All existing backends have been updated, and any which were able to be changed to yield return results in a straightforward way now do.
Many backends had a try/catch in the List() method. Due to the fact that yield returns can't be placed within a try/catch block, these have been refactored to either scope the try/catch to the parts that (should) be the only places throwing exceptions, so that exceptions are still caught and handled.
Note that lazy evaluation may cause some changes in behavior - exceptions that were previously thrown at the point of invokation of List() may now be thrown while it is being enumerated.
I believe this will not be problematic though, as the only well-known exception seems to be FolderMissingException, which should be thrown by Test(), but TestList() attempts to enumerate the list to force this exception.
Any places that require the legacy behavior can get it by simply converting the lazy enumerable to a List()
2017-09-25 23:17:45 -06:00
Kenneth Skovhede 6d401fbd8d Changed all hash algorithms to use the Cng version.
This fixes #2621
2017-09-20 09:58:43 +02:00
Kenneth Skovhede a0d9ad5d4e Changed --backup-prefix hint texts to --prefix.
This fixes #2548
2017-06-19 22:06:35 +02:00
Max 7127970fd5 better progress reporting 2016-08-21 21:12:48 +02:00
Max 861dd9cc8b during recompress is neccessary to recalculate hashes of recompressed block file and update them in dindex files - fixed 2016-08-21 12:53:44 +02:00
Max 11370e4aea rename file inside dindexes 2016-07-14 21:06:43 +02:00
Max 3063a780d2 preserve files lastwrite time 2016-07-14 16:03:29 +02:00
Max e76ba365ee delete verification file if reupload enabled 2016-07-14 12:13:54 +02:00
Max c603c1f85e small tuning 2016-07-14 00:05:35 +02:00
Max 3b432356cf ability to recompress whole backend to another type of compression 2016-06-05 23:37:10 +02:00