From 799e662b8fefc53bc5b013286122003872e3c04b Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Wed, 28 Aug 2024 01:46:39 +0300 Subject: [PATCH] embed: turn source path to absolute for error-less copy Signed-off-by: Mohammed Al Sahaf --- io.go | 1 + 1 file changed, 1 insertion(+) diff --git a/io.go b/io.go index 49ba488..2b963f7 100644 --- a/io.go +++ b/io.go @@ -12,6 +12,7 @@ import ( // copy recursively copies src into dst with src's file modes. func copy(src, dst string) error { + src, _ = filepath.Abs(src) src = filepath.ToSlash(src) dst = filepath.ToSlash(dst) log.Printf("[INFO] copying files: src=%s dest=%s", src, dst)