We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e9c904 commit d31e90fCopy full SHA for d31e90f
utbot-framework-api/src/main/kotlin/org/utbot/framework/plugin/api/util/LockFile.kt
@@ -22,7 +22,7 @@ object LockFile {
22
if (currentLock != null) return false
23
return try {
24
Paths.get(utbotHomePath).toFile().mkdirs()
25
- currentLock = Paths.get(lockFilePath).outputStream(StandardOpenOption.CREATE_NEW, StandardOpenOption.DELETE_ON_CLOSE).also {
+ currentLock = Paths.get(lockFilePath).outputStream(StandardOpenOption.CREATE, StandardOpenOption.DELETE_ON_CLOSE).also {
26
it.write(DateFormat.getDateTimeInstance().format(System.currentTimeMillis()).toByteArray())
27
}
28
logger.debug("Locked")
0 commit comments