createFilesystemReadDirAction()
Home > @backstage/plugin-scaffolder-backend
> createFilesystemReadDirAction
Creates new action that enables reading directories in the workspace.
Signature:
createFilesystemReadDirAction: () => import("@backstage/plugin-scaffolder-node").TemplateAction<{
paths: string[];
recursive?: boolean | undefined;
}, {
files: {
name: string;
path: string;
fullPath: string;
}[];
folders: {
name: string;
path: string;
fullPath: string;
}[];
}>
Returns:
import("@backstage/plugin-scaffolder-node").TemplateAction<{ paths: string[]; recursive?: boolean | undefined; }, { files: { name: string; path: string; fullPath: string; }[]; folders: { name: string; path: string; fullPath: string; }[]; }>