summaryrefslogtreecommitdiff
path: root/mkvlib/utils.go
diff options
context:
space:
mode:
authorb5f0d6c3 <[email protected]>2022-03-23 14:45:18 +0800
committerb5f0d6c3 <[email protected]>2022-03-23 14:45:18 +0800
commit12b9924e13a6d12326e2e0174e152d4a030f1260 (patch)
tree2fa9fefd4c4b0f059ccca8088505291d2eb44772 /mkvlib/utils.go
parentff9e37fb69b52d2a0f4285ded2412350f15ff5c7 (diff)
update mkvtool:fix bugs
Diffstat (limited to 'mkvlib/utils.go')
-rw-r--r--mkvlib/utils.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/mkvlib/utils.go b/mkvlib/utils.go
index 802b94e..4615975 100644
--- a/mkvlib/utils.go
+++ b/mkvlib/utils.go
@@ -41,6 +41,9 @@ func findPath(path, expr string) (list []string, err error) {
}
err = queryPath(path, func(path string) bool {
if expr == "" || reg.MatchString(path) {
+ if !filepath.IsAbs(path) {
+ path, _ = filepath.Abs(path)
+ }
list = append(list, path)
}
return true