Fix searching of executable file (#4368)

This commit is contained in:
LepilkinaElena
2020-09-10 13:22:47 +03:00
committed by GitHub
parent 0a5e64f617
commit fc083fc134
@@ -145,7 +145,7 @@ fun getCompileOnlyBenchmarksOpts(project: Project, defaultCompilerOpts: List<Str
// Find file with set name in directory.
fun findFile(fileName: String, directory: String): String? =
File(directory).walkTopDown().filter { !it.name.endsWith(".dSYM") }
File(directory).walkTopDown().filter { !it.absolutePath.contains(".dSYM") }
.find { it.name == fileName }?.getAbsolutePath()
fun uploadFileToArtifactory(url: String, project: String, artifactoryFilePath: String,