[net](../../index.md) / [com.drake.net.request](../index.md) / [BaseRequest](index.md) / [setDownloadFileNameConflict](./set-download-file-name-conflict.md) # setDownloadFileNameConflict `fun setDownloadFileNameConflict(enabled: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)` = true): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) 假设下载文件路径已存在同名文件是否重命名, 例如`file_name(1).apk`