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
…2773) (#2774)

* fix: recreate cache directories in case cache is cleared [WPB-7368]

* fix detekt

Co-authored-by: Michał Saleniuk <[email protected]>
  • Loading branch information
github-actions[bot] and saleniuk authored May 20, 2024
1 parent c75bf22 commit 323fad3
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 323fad3

Please sign in to comment.