Skip to content

Commit

Permalink
fix: ignore .gitkeep file
Browse files Browse the repository at this point in the history
  • Loading branch information
turtton committed Apr 3, 2023
1 parent 9e2db49 commit 1ac2ea1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kotlin/src/jsMain/kotlin/Cache.kt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ fun initCache(
val postFolder = getMarkdownFolder()
val publicFolder = getPublicFolder()
getAllFiles().forEach { filePath ->
if (filePath.contains(".gitkeep")) return@forEach
var pathString = PathString(filePath)
val plainFileName = pathString.toSlugString(postFolder).toPlainFileName()
if (nameCache.contains(plainFileName.fileName)) {
Expand Down

0 comments on commit 1ac2ea1

Please sign in to comment.