Moved all to videoio.go for portability

This commit is contained in:
Alex Eidt 2021-12-22 15:51:37 -08:00
parent ff24be3154
commit 3faf4aa9c8
7 changed files with 316 additions and 340 deletions

View file

@ -1,19 +0,0 @@
package main
import (
"errors"
"os"
)
// Returns true if file exists, false otherwise.
// https://stackoverflow.com/questions/12518876/how-to-check-if-a-file-exists-in-go
func Exists(filename string) bool {
_, err := os.Stat(filename)
if err == nil {
return true
}
if errors.Is(err, os.ErrNotExist) {
return false
}
return false
}