Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/bids_validator/types/filetree.ts>FileTree

Validator for the Brain Imaging Data Structure
Latest
class FileTree
import { FileTree } from "https://deno.land/x/bids_validator@v1.15.0/types/filetree.ts";

Abstract FileTree for all environments (Deno, Browser, Python)

Constructors

new
FileTree(
path: string,
name: string,
parent?: FileTree,
ignore?: FileIgnoreRules,
)

Properties

directories: FileTree[]
files: BIDSFile[]
readonly
ignored: boolean
name: string
optional
parent: FileTree
path: string
viewed: boolean

Methods

_get(parts: string[]): BIDSFile | FileTree | undefined
contains(parts: string[]): boolean
get(path: string): BIDSFile | FileTree | undefined