Skip to content

Commit

Permalink
fix: recreate cache directories in case cache is cleared [WPB-7368]
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed May 17, 2024
1 parent 8c6ee23 commit b508d8b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ actual class KaliumFileSystemImpl actual constructor(
*/
override fun tempFilePath(pathString: String?): Path {
val filePath = pathString ?: "temp_file_path"
createDirectories(rootCachePath) // create dir structure in case cache is cleared
return "$rootCachePath/$filePath".toPath()
}

Expand Down

0 comments on commit b508d8b

Please sign in to comment.