build_tools.syllable_walk_web.api.browse

Directory browser API handler for the web application.

Lists directory contents for source and output directory selection.

Functions

handle_browse_directory(body)

Handle POST /api/browse-directory.

Module Contents

build_tools.syllable_walk_web.api.browse.handle_browse_directory(body)[source]

Handle POST /api/browse-directory.

Lists directories and text files in the given path.

Parameters:

body (dict[str, Any]) – Request body with path (directory to list).

Returns:

Dict with path, parent, entries list.

Return type:

dict[str, Any]