Skip to content

Commit

Permalink
Add RawName
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2brain committed Oct 13, 2021
1 parent 2c0c023 commit 3bbeaab
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion unarr.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,11 +168,16 @@ func (a *Archive) Offset() int64 {
return int64(unarrc.EntryGetOffset(a.archive))
}

// Name returns the name of the current entry
// Name returns the name of the current entry as UTF-8 string
func (a *Archive) Name() string {
return unarrc.EntryGetName(a.archive)
}

// RawName returns the name of the current entry as raw string
func (a *Archive) RawName() string {
return unarrc.EntryGetRawName(a.archive)
}

// ModTime returns the stored modification time of the current entry
func (a *Archive) ModTime() time.Time {
filetime := int64(unarrc.EntryGetFiletime(a.archive))
Expand Down

0 comments on commit 3bbeaab

Please sign in to comment.