mirror of
https://git.sr.ht/~phw/scotty
synced 2025-06-05 12:58:33 +02:00
Simplify dirArchive by using os.dirFS and have Archive.Open return fs.File
This commit is contained in:
parent
0231331209
commit
975e208254
2 changed files with 20 additions and 22 deletions
|
@ -63,7 +63,7 @@ func (a *ExportArchive) Close() error {
|
|||
|
||||
// Read the user information from the archive.
|
||||
func (a *ExportArchive) UserInfo() (UserInfo, error) {
|
||||
f, err := a.backend.OpenFile("user.json")
|
||||
f, err := a.backend.Open("user.json")
|
||||
if err != nil {
|
||||
return UserInfo{}, err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue