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 listFilesAndFolders(startDir: Path): FileSystemWalkResult


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

    fun listAllFilesAndFoldersWalk(startDir: Path, preVisitDirectory: ((directory: VisitedFile) -> Unit)?,
                                   visitedFileCallback: (VisitedFile) -> Unit)

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy