MingaEditor.FileTree.FilterWalk.Result (Minga v0.1.0)

Copy Markdown View Source

Typed immutable result of one scheduled file-tree filter scan.

Summary

Functions

Builds a filesystem-backed filter result.

Builds a project-cache-backed filter result with final materialized entries.

Types

source()

@type source() :: :filesystem | :project_cache

t()

@type t() :: %MingaEditor.FileTree.FilterWalk.Result{
  entries: [Minga.Project.FileTree.entry()],
  filter: String.t(),
  project_cache: MingaEditor.FileTree.ProjectCache.Snapshot.t() | nil,
  root: String.t(),
  source: source()
}

Functions

filesystem(root, filter, entries)

@spec filesystem(String.t(), String.t(), [Minga.Project.FileTree.entry()]) :: t()

Builds a filesystem-backed filter result.

project_cache(root, filter, entries, snapshot)

Builds a project-cache-backed filter result with final materialized entries.