net.dankito.utils.filesystem.IFilesystemWalker.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-utils Show documentation
Show all versions of java-utils Show documentation
Some basic utils needed in many projects
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?)
}