|
|
|
|
@ -79,6 +79,7 @@ func createThumbnailsDirectory() {
|
|
|
|
|
func main() {
|
|
|
|
|
port := flag.String("p", "6969", "port to serve on")
|
|
|
|
|
directory := flag.String("d", ".", "the directory of static file to host")
|
|
|
|
|
converter := flag.String("t", ".", "location of conversion script")
|
|
|
|
|
flag.Parse()
|
|
|
|
|
|
|
|
|
|
createThumbnailsDirectory()
|
|
|
|
|
@ -100,7 +101,7 @@ func main() {
|
|
|
|
|
|
|
|
|
|
dir, _ := filepath.Abs(*directory)
|
|
|
|
|
|
|
|
|
|
cmd := exec.Command("./tncmd.sh", filepath.Join(dir, name))
|
|
|
|
|
cmd := exec.Command(*converter, filepath.Join(dir, name))
|
|
|
|
|
|
|
|
|
|
fmt.Println(cmd)
|
|
|
|
|
|
|
|
|
|
|