Fix searching executable on MacOSX (#4360)

This commit is contained in:
LepilkinaElena
2020-09-08 13:59:35 +03:00
committed by GitHub
parent 5caad8779f
commit 57b9185909
@@ -145,7 +145,8 @@ fun getCompileOnlyBenchmarksOpts(project: Project, defaultCompilerOpts: List<Str
// Find file with set name in directory.
fun findFile(fileName: String, directory: String): String? =
File(directory).walkBottomUp().find { it.name == fileName }?.getAbsolutePath()
File(directory).walkTopDown().filter { !it.name.endsWith(".dSYM") }
.find { it.name == fileName }?.getAbsolutePath()
fun uploadFileToArtifactory(url: String, project: String, artifactoryFilePath: String,
filePath: String, password: String) {