NewTorrentFileMap creates a new empty TorrentFileMap.
()
| 24 | |
| 25 | // NewTorrentFileMap creates a new empty TorrentFileMap. |
| 26 | func 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. |
| 34 | func (m *TorrentFileMap) Add(path string) { |
no outgoing calls