Skip to content

Commit

Permalink
Adding a time field to FileInfo for special purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
Ns2Kracy committed Oct 9, 2024
1 parent f21937e commit f856c90
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions metainfo/fileinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ type FileInfo struct {
// v1 files.
PiecesRoot g.Option[[32]byte] `bencode:"-"`
TorrentOffset int64 `bencode:"-"`

// For special purposes
Time int64 `bencode:"time,omitempty"`
}

func (fi *FileInfo) DisplayPath(info *Info) string {
Expand Down

0 comments on commit f856c90

Please sign in to comment.