{
  "definitions": [
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 5,
      "name": "includeAll",
      "signature": "const includeAll = function includeAll(): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 9,
      "name": "excludeNone",
      "signature": "const excludeNone = function excludeNone(): boolean {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 13,
      "name": "readEntries",
      "signature": "const readEntries = function readEntries(dir: string): Dirent[] {"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 17,
      "name": "scan",
      "signature": "const scan = function scan("
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 22,
      "name": "entries",
      "signature": "const entries = readEntries(dir);"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 23,
      "name": "dirs",
      "signature": "const dirs = entries"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": false,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 27,
      "name": "files",
      "signature": "const files = entries"
    },
    {
      "callable": true,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 33,
      "name": "collectFiles",
      "signature": "export const collectFiles = function collectFiles(root: string, options: CollectOptions = {}): string[] {"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 34,
      "name": "excluded",
      "signature": "const excluded = options.excluded ?? excludeNone;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 35,
      "name": "include",
      "signature": "const include = options.include ?? includeAll;"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 36,
      "name": "out",
      "signature": "const out: string[] = [];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 37,
      "name": "stack",
      "signature": "const stack: string[] = [root];"
    },
    {
      "callable": false,
      "callees": [],
      "callers": [],
      "exported": true,
      "flow": "isolated",
      "kind": "lexical_declaration",
      "line": 39,
      "name": "{ dirs, files }",
      "signature": "const { dirs, files } = scan(stack.pop() ?? root, excluded, include);"
    }
  ],
  "document": null,
  "findings": [],
  "generated": false,
  "href": "https://banes-lab.com/anatomy/content-fingerprint#file-content-fingerprint-core-loaders-folder-loader-ts",
  "language": "typescript",
  "layer": "infrastructure",
  "name": "folder.loader.ts",
  "path": "core/loaders/folder.loader.ts",
  "ref": "anatomy:file-content-fingerprint-core-loaders-folder-loader-ts",
  "relations": [
    {
      "links": [
        {
          "href": "https://banes-lab.com/anatomy/content-fingerprint#folder-content-fingerprint-core-loaders",
          "json": "https://banes-lab.com/json/anatomy/content-fingerprint/folder-content-fingerprint-core-loaders",
          "label": "core/loaders",
          "markdown": "https://banes-lab.com/anatomy/content-fingerprint/folder-content-fingerprint-core-loaders.md",
          "ref": "chapter:/anatomy/content-fingerprint#folder-content-fingerprint-core-loaders"
        }
      ],
      "relation": "contained-in"
    }
  ],
  "slots": {
    "concern": "loader",
    "subject": "folder",
    "variant": null
  },
  "stats": {
    "bytes": 1492,
    "callable": 5,
    "definitions": 13,
    "edges": 0,
    "exported": 6,
    "files": 1,
    "findings": {},
    "flows": {
      "isolated": 13
    },
    "lines": {
      "blank": 5,
      "code": 39,
      "total": 44
    }
  },
  "summary": "39 lines of code and 13 definitions.",
  "text": "https://banes-lab.com/source/content-fingerprint/core/loaders/folder.loader.ts.txt",
  "tree": "content-fingerprint",
  "siblings": {
    "next": null,
    "previous": null
  },
  "up": {
    "href": null,
    "json": "https://banes-lab.com/json/api/source/content-fingerprint/core/loaders",
    "label": "core/loaders",
    "markdown": "https://banes-lab.com/api/source/content-fingerprint/core/loaders.md",
    "ref": "api:source/content-fingerprint/core/loaders"
  }
}
