Add oshash support (#667)

This commit is contained in:
WithoutPants
2020-08-06 11:21:14 +10:00
committed by GitHub
parent f59ad0ca2b
commit 5992ff8706
50 changed files with 1276 additions and 195 deletions

View File

@@ -1,20 +0,0 @@
// +build ignore
package main
import (
"fmt"
"os"
"github.com/stashapp/stash/pkg/utils"
)
func main() {
hash, err := utils.OSHashFromFilePath(os.Args[1])
if err != nil {
panic(err)
}
fmt.Println(hash)
}