Skip to content

Commit

Permalink
Add check to make sure contentmeta.xbx is a file
Browse files Browse the repository at this point in the history
  • Loading branch information
gregandcin authored Jan 16, 2024
1 parent cf1393d commit 704f94c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pinecone.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func processDLCContent(subDirDLC string, titleData TitleData, titleID string, di

hasContentMetaXbx := false
for _, dlcFiles := range subDirContents {
if strings.Contains(strings.ToLower(dlcFiles.Name()), "contentmeta.xbx") {
if strings.Contains(strings.ToLower(dlcFiles.Name()), "contentmeta.xbx") && !dlcFiles.IsDir() {
hasContentMetaXbx = true
break
}
Expand Down

0 comments on commit 704f94c

Please sign in to comment.