mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
20 lines
218 B
Go
20 lines
218 B
Go
// +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)
|
|
}
|