fix: windows stat command (#4503)

This commit is contained in:
Klaus Post
2023-03-18 16:37:13 -07:00
committed by GitHub
parent 045430905a
commit 5d334f4960
+1 -1
View File
@@ -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)
}