Skip to content

Commit

Permalink
[commonize] #496 Fix SystemPath.delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Jul 28, 2024
1 parent 57065d2 commit a67ce3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/io/src/commonMain/kotlin/Path.kt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ fun SystemPath.exists(): Boolean = SystemFileSystem.exists(path)
/**
* @see FileSystem.delete
*/
fun SystemPath.delete(mustExist: Boolean = true) = SystemFileSystem.delete(path, mustExist)
fun SystemPath.delete(mustExist: Boolean = false) = SystemFileSystem.delete(path, mustExist)

@Deprecated("For migration. Use delete() instead", ReplaceWith("this.delete()"), level = DeprecationLevel.ERROR)
fun SystemPath.deleteIfExists() = delete()
Expand Down

0 comments on commit a67ce3c

Please sign in to comment.