class

Wikicr::FileTree

Inherits Reference / Object

A FileTree is a tree structure representing a file with a name and subfiles. It is used to map the wiki for the "sitemap" feature. TODO: it should be fully replaced by the index

Constructors

build(to_scan : String, max_depth : Int = 32) : FileTree

Build a FileTree that represents the real structure of the "to_scan" It is recursive and may be very time consuming, so there is a limit of depth

FileTree.build("./data/")
Source
new(name : String, files : Array(Wikicr::FileTree) = [] of FileTree)
Source

Instance methods

directory?

If the file contains other files, then it is a "directory"

Source
files
Source
name
Source