FilesTree

org.encalmo.utils.FilesTree
object FilesTree

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
FilesTree.type

Members list

Type members

Types

type Node = (Int, String)
type Tree = List[Node]

Value members

Concrete methods

final def compute(paths: Seq[Path]): Tree

Compute tree from file paths

Compute tree from file paths

Attributes

final def draw(pathsTree: Tree): String

Draw a tree

Draw a tree

Attributes

final def tree(root: Path, maxDepth: Int, visitOptions: Seq[FileVisitOption], isAllowed: Path => Boolean, includeRoot: Boolean): String

Draw a tree of files and folders starting at root

Draw a tree of files and folders starting at root

Value parameters

includeRoot

whether to render root folder at the top

isAllowed

whether to include given path and its subpaths

maxDepth

max tree depth

root

folder where to start

visitOptions

java file visti options

Attributes