2
0
mirror of synced 2025-02-23 22:28:11 +00:00
Chris Walker 9d96cd659f fix Spec.Storage and allow per-torrent dir
`TorrentSpec.Storage` was not honored when calling `Client.AddTorrentSpec`
and the configured `cfg.DefaultStorage` was always used. Now if you construct
your `TorrentSpec` you can specify any `StorageImpl`

Also, the most common use case for custom storage being per-torrent paths for
FileStorage, this adds a `pathMaker` function to the File implementation that
allows customization, along with the default (always use base path) and my use
case (which seemed common enough from the Gitter chat) which is infohash based
subdirectories.

All Public methods have not changed signature, but 1 private method did, hence
the test update.
2017-03-16 14:40:21 +00:00
..
2016-10-25 19:07:26 +11:00
2016-10-25 19:07:26 +11:00
2016-10-25 19:07:26 +11:00
2016-07-10 23:03:59 +10:00
2016-10-25 19:07:26 +11:00
2016-10-25 19:07:26 +11:00