mirror of https://github.com/stashapp/stash.git
18 lines
307 B
Go
18 lines
307 B
Go
package file
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/stashapp/stash/pkg/utils"
|
|
)
|
|
|
|
type FSHasher struct{}
|
|
|
|
func (h *FSHasher) OSHash(src io.ReadSeeker, size int64) (string, error) {
|
|
return utils.OSHashFromReader(src, size)
|
|
}
|
|
|
|
func (h *FSHasher) MD5(src io.Reader) (string, error) {
|
|
return utils.MD5FromReader(src)
|
|
}
|