Skip to content

Commit

Permalink
Document preference for metainfo.FileInfo.PathUtf8
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Mar 18, 2024
1 parent e6be81d commit a005653
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions metainfo/fileinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ import (
type FileInfo struct {
// BEP3. With BEP 47 this can be optional, but we have no way to describe that without breaking
// the API.
Length int64 `bencode:"length"`
Path []string `bencode:"path"` // BEP3
Length int64 `bencode:"length"`
Path []string `bencode:"path"` // BEP3
// Unofficial extension by BiglyBT? https://github.com/BiglySoftware/BiglyBT/issues/1274. Might
// be a safer bet when available: https://github.com/anacrolix/torrent/pull/915.
PathUtf8 []string `bencode:"path.utf-8,omitempty"`

ExtendedFileAttrs
Expand Down

0 comments on commit a005653

Please sign in to comment.