Skip to content

Commit 7125182

Browse files
minor
1 parent 43b5612 commit 7125182

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/content/content.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ func determineStringSlice(values any, key string) []string {
514514
}
515515

516516
func IsContentFile(path string) bool {
517-
if pathx.IsDir(path) || !strings.HasSuffix(path, JCRContentFile) {
517+
if !pathx.Exists(path) || pathx.IsDir(path) || !strings.HasSuffix(path, JCRContentFile) {
518518
return false
519519
}
520520

0 commit comments

Comments
 (0)