From 9e0a3a19a697301b6b8fc49843807805d5979b38 Mon Sep 17 00:00:00 2001 From: shuhangli <> Date: Wed, 19 Jul 2023 13:48:21 +0800 Subject: [PATCH] fix: find file in path --- gradle.properties | 2 +- .../com/github/suhli/ideagokratosplugin/helper/DirHelper.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 336012f..f30e6d3 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,7 +3,7 @@ pluginGroup = com.github.suhli.ideagokratosplugin pluginName = go-kratos-plugin # SemVer format -> https://semver.org -pluginVersion = 0.0.13 +pluginVersion = 0.0.14 # Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html pluginSinceBuild = 221.* diff --git a/src/main/kotlin/com/github/suhli/ideagokratosplugin/helper/DirHelper.kt b/src/main/kotlin/com/github/suhli/ideagokratosplugin/helper/DirHelper.kt index 000c726..8fb477b 100644 --- a/src/main/kotlin/com/github/suhli/ideagokratosplugin/helper/DirHelper.kt +++ b/src/main/kotlin/com/github/suhli/ideagokratosplugin/helper/DirHelper.kt @@ -46,7 +46,7 @@ class DirHelper { if (!file.isDirectory){ return false } - return file.findChild(name) != null + return file.findFileByRelativePath(name) != null } } } \ No newline at end of file