Added functionality to archive files from ingest

This commit is contained in:
2022-08-31 22:41:05 -04:00
parent a544f1f016
commit 9010de6a14
3 changed files with 93 additions and 23 deletions

10
util/file.go Normal file
View File

@ -0,0 +1,10 @@
package util
import (
"path"
"strings"
)
func FilenameWithoutExtension(filename string) string {
return strings.TrimSuffix(filename, path.Ext(filename))
}