/**
 * This function checks whether a given file is a photo or not.
 *
 * @param file The name of the file to be checked.
 * @return True if the file is a photo, False otherwise.
 */
fun isPhoto(file: String): Boolean {

    val fileExt = file.split('.').last().toLowerCase()
    return fileExt in listOf("jpg", "jpeg", "png", "gif", "bmp")
}
/**
 * This function checks whether a given file is a photo or not.
 *
 * @param file The name of the file to be checked.
 * @return True if the file is a photo, False otherwise.
 */
fun isPhoto(file: String): Boolean {
/**
 * This function checks whether a given file is a photo or not.
 *
 * @param file The name of the file to be checked.
 * @return True if the file is a photo, False otherwise.
 */
fun isPhoto(file: String): Boolean {

    val fileExt = file.split('.').last().toLowerCase()
    return fileExt in listOf("jpg", "jpeg", "png", "gif", "bmp")
}