Added functionality to archive files from ingest
This commit is contained in:
10
util/file.go
Normal file
10
util/file.go
Normal file
@ -0,0 +1,10 @@
|
||||
package util
|
||||
|
||||
import (
|
||||
"path"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func FilenameWithoutExtension(filename string) string {
|
||||
return strings.TrimSuffix(filename, path.Ext(filename))
|
||||
}
|
Reference in New Issue
Block a user