Function loadDir

  • Internal

    Load a directory tree. This function is used internally by the load function to recursively read the contents of a directory.

    Type Parameters

    • Type = unknown

      The type of the file contents.

    Parameters

    • path: PathLike

      The path to the directory.

    • options: Required<LoadOptions<Type>>

      The options for loading the directory tree.

    Returns Promise<DirectoryTree<Type>>