From 428ad1e58b8fea386ed43de7e4403607d3595501 Mon Sep 17 00:00:00 2001 From: Son Roy Almerol Date: Sun, 17 Nov 2024 20:31:21 -0500 Subject: [PATCH] only use base path --- internal/store/tasks.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/store/tasks.go b/internal/store/tasks.go index f597aed..0c55113 100644 --- a/internal/store/tasks.go +++ b/internal/store/tasks.go @@ -129,7 +129,8 @@ func (storeInstance *Store) GetMostRecentTask(ctx context.Context, job *Job) (ch searchString := fmt.Sprintf(":backup:%s%shost-%s", job.Store, encodeToHexEscapes(":"), encodeToHexEscapes(backupId)) log.Printf("Checking %s == %s\n", event.Name, searchString) if strings.Contains(event.Name, searchString) { - colonSplit := strings.Split(event.Name, ":") + fileName := filepath.Base(event.Name) + colonSplit := strings.Split(fileName, ":") actualUpid := colonSplit[:9] newTask, err := storeInstance.GetTaskByUPID(strings.Join(actualUpid, ":") + ":") if err != nil {