File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
utbot-intellij/src/main/kotlin/org/utbot/intellij/plugin/ui Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ import java.io.File
153153import java.time.LocalDateTime
154154import java.time.format.DateTimeFormatter
155155import java.util.*
156- import kotlin.io.path.exists
156+ import kotlin.io.path.notExists
157157
158158private const val RECENTS_KEY = " org.utbot.recents"
159159
@@ -893,10 +893,10 @@ class GenerateTestsDialogWindow(val model: GenerateTestsModel) : DialogWrapper(m
893893 val mockitoExtensionsPath = " $testResourcesPath /$MOCKITO_EXTENSIONS_FOLDER " .toPath()
894894 val mockitoMockMakerPath = " $mockitoExtensionsPath /$MOCKITO_MOCKMAKER_FILE_NAME " .toPath()
895895
896- if (! testResourcesPath.exists ()) Files .createDirectory (testResourcesPath)
897- if (! mockitoExtensionsPath.exists ()) Files .createDirectory (mockitoExtensionsPath)
896+ if (testResourcesPath.notExists ()) Files .createDirectories (testResourcesPath)
897+ if (mockitoExtensionsPath.notExists ()) Files .createDirectories (mockitoExtensionsPath)
898898
899- if (! mockitoMockMakerPath.exists ()) {
899+ if (mockitoMockMakerPath.notExists ()) {
900900 Files .createFile(mockitoMockMakerPath)
901901 Files .write(mockitoMockMakerPath, listOf (MOCKITO_EXTENSIONS_FILE_CONTENT ))
902902 }
You can’t perform that action at this time.
0 commit comments