overriding toString() of FileDirItem, as it is no longer a data class

This commit is contained in:
tibbi 2019-03-26 23:15:05 +01:00
parent f8d2739a1d
commit c714b79f48

View file

@ -11,6 +11,8 @@ open class FileDirItem(val path: String, val name: String = "", var isDirectory:
var sorting = 0
}
override fun toString() = "FileDirItem(path=$path, name=$name, isDirectory=$isDirectory, children=$children, size=$size)"
override fun compareTo(other: FileDirItem): Int {
return if (isDirectory && !other.isDirectory) {
-1