MCPcopy
hub / github.com/autobrr/qui / NewTorrentFileMap

Function NewTorrentFileMap

internal/services/orphanscan/filemap.go:26–31  ·  view source on GitHub ↗

NewTorrentFileMap creates a new empty TorrentFileMap.

()

Source from the content-addressed store, hash-verified

24
25// NewTorrentFileMap creates a new empty TorrentFileMap.
26func NewTorrentFileMap() *TorrentFileMap {
27 return &TorrentFileMap{
28 paths: make(map[string]struct{}),
29 dirs: make(map[string]struct{}),
30 }
31}
32
33// Add adds a normalized path to the map.
34func (m *TorrentFileMap) Add(path string) {

Calls

no outgoing calls