All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.dankito.utils.filesystem.VisitedFile.kt Maven / Gradle / Ivy

There is a newer version: 1.0.20
Show newest version
package net.dankito.utils.filesystem

import java.nio.file.Path
import java.nio.file.attribute.BasicFileAttributes


open class VisitedFile(
        val path: Path?,
        val attributes: BasicFileAttributes? = null,
        val error: Exception? = null
) {

    val visitSuccessful = path != null && error == null


    override fun toString(): String {
        return "${if (visitSuccessful) "Success" else "Error"} visiting file $path"
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy