Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Discussions] 为什么校验文件是否在文件夹里是使用contains而不是全等比较? #142

Closed
404N opened this issue Jun 28, 2023 · 2 comments
Assignees

Comments

@404N
Copy link

404N commented Jun 28, 2023

Content

以下是插件源码
/**
* 判断Directory中是否包含这个file
*/
fun containsDirectoryFile(directory: PsiDirectory, fileName: String): Boolean {
return directory.files.filter { it.name.endsWith(".dart") }
.firstOrNull { it.name.contains(fileName) } != null
}

如果我同一个文件夹中先创建了home_tab_entity,之后就创建不了tab_entity了

@zhangruiyu
Copy link
Collaborator

好的,我最近会看看这个问题 然后修复的

@zhangruiyu
Copy link
Collaborator

已经修复了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants