From 7c21167530d06987da62f8794915b92bfdc0607c Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Sat, 31 Aug 2024 02:04:13 +0300 Subject: [PATCH] embed: turn source path to absolute for error-less copy (#198) 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)