diff --git a/cmd/stat.go b/cmd/stat.go index 7f577966..89464528 100644 --- a/cmd/stat.go +++ b/cmd/stat.go @@ -155,7 +155,7 @@ func statURL(targetURL string, isIncomplete, isRecursive bool, encKeyDB map[stri } url := targetAlias + getKey(content) - if !isRecursive && url != targetURL { + if !isRecursive && !strings.HasPrefix(url, targetURL) { return nil, errTargetNotFound(targetURL) }