Android Check File Exist (Kotlin)

June 18, 2018
File.exists()
File(filePath).exists()

Or

File(filePath).isFile()

NOTE: exists() is slightly faster and works on special file like socket, device file, etc.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.