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

jdk7.kotlin.io.path.PathWalkOption.kt Maven / Gradle / Ivy

There is a newer version: 2024.03.6
Show newest version
/*
 * Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
 * Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
 */

package kotlin.io.path

import java.nio.file.Path

/**
 * An enumeration to provide walk options for [Path.walk] function.
 * The options can be combined to form the walk order and behavior needed.
 *
 * Note that this enumeration is not exhaustive and new cases might be added in the future.
 */
@ExperimentalPathApi
@SinceKotlin("1.7")
public enum class PathWalkOption {
    /** Visits directories as well. */
    INCLUDE_DIRECTORIES,

    /** Walks in breadth-first order. */
    BREADTH_FIRST,

    /** Follows symbolic links to the directories they point to. */
    FOLLOW_LINKS
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy