Skip to content

Commit

Permalink
Fixed runtime error (#241)
Browse files Browse the repository at this point in the history
Fixed the error caused by file.go by properly initializing file system
  • Loading branch information
Astranix593 authored Sep 26, 2024
1 parent bacb8aa commit 918042b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/utils/fs/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,7 @@ func (b *binaryFileSystem) Exists(prefix string, filepath string) bool {
}

func BinaryFileSystem(root string) *binaryFileSystem {
return &binaryFileSystem{}
return &binaryFileSystem{
fs: http.Dir(root),
}
}

0 comments on commit 918042b

Please sign in to comment.