Class ListFolderTool

All Implemented Interfaces:
GuardedExecution, Identifiable, Job<ListArtifact<FileEntry>>, Tool<Folder, ListArtifact<FileEntry>>

public class ListFolderTool extends DecisionTool<Folder, ListArtifact<FileEntry>>
Lists a folder: every regular file in it, by name, with what its bytes say it is and, for a text file, its first words. No model: the sniffing is the extract step's, the head is a few hundred bytes decoded. The list is what a decision model chooses files from, so each entry carries exactly what a person would glance at in a file browser. A path that is not a folder on this machine is refused with the reason (InvalidInputException).
Since:
0.1 (2026-09-24)
Author:
Andrey Santrosyan