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

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

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

import java.nio.file.FileVisitResult
import java.nio.file.Path


interface IFilesystemWalker {

    fun listFiles(startDir: Path): List

    fun walk(startDir: Path, discoveredFileCallback: (Path) -> Unit)

    fun detailedWalk(startDir: Path, abortOnError: Boolean = false,
                     preVisitDirectory: ((directory: Path?) -> FileVisitResult)? = null,
                     postVisitDirectory: ((directory: Path?) -> FileVisitResult)? = null,
                     visitedFileCallback: (VisitedFile) -> FileVisitResult?)

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy