mirror of
https://github.com/stashapp/stash.git
synced 2026-05-09 05:05:29 +02:00
15 lines
315 B
Go
15 lines
315 B
Go
// TODO(audio): update this file
|
|
package audio
|
|
|
|
import (
|
|
"path/filepath"
|
|
"strings"
|
|
)
|
|
|
|
// GetFunscriptPath returns the path of a file
|
|
// with the extension changed to .funscript
|
|
func GetFunscriptPath(path string) string {
|
|
ext := filepath.Ext(path)
|
|
fn := strings.TrimSuffix(path, ext)
|
|
return fn + ".funscript"
|
|
}
|