From 5d334f49609a13ca9d192ce78dfc2f3a815140e2 Mon Sep 17 00:00:00 2001 From: Klaus Post Date: Sat, 18 Mar 2023 16:37:13 -0700 Subject: [PATCH] fix: windows stat command (#4503) --- cmd/stat.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/stat.go b/cmd/stat.go index d69d3ca2..c94630fc 100644 --- a/cmd/stat.go +++ b/cmd/stat.go @@ -225,7 +225,7 @@ func statURL(ctx context.Context, targetURL, versionID string, timeRef time.Time url := targetAlias + getKey(content) standardizedURL := getStandardizedURL(targetURL) - if !isRecursive && !strings.HasPrefix(url, standardizedURL) && !filepath.IsAbs(url) { + if !isRecursive && !strings.HasPrefix(filepath.FromSlash(url), standardizedURL) && !filepath.IsAbs(url) { return errTargetNotFound(targetURL).Trace(url, standardizedURL) }