"github.com/anacrolix/dht/v2"
"github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/metainfo"
+ "github.com/anacrolix/torrent/storage"
"github.com/anacrolix/torrent/types/infohash"
"github.com/dustin/go-humanize"
)
}
func saveTorrent(t *torrent.Torrent) error {
- pth := t.Name() + TorrentExt
+ pth := storage.PathShortener(t.Name()) + TorrentExt
if _, err := os.Stat(pth); err == nil {
return nil
}