Skip to content

Fix Java object conversion in ls input handler#20

Merged
nmaguiar merged 1 commit intomainfrom
codex/convert-listfilesrecursive-to-javascript
Mar 9, 2026
Merged

Fix Java object conversion in ls input handler#20
nmaguiar merged 1 commit intomainfrom
codex/convert-listfilesrecursive-to-javascript

Conversation

@nmaguiar
Copy link
Contributor

@nmaguiar nmaguiar commented Mar 6, 2026

Motivation

  • Ensure Java-returned structures from listFilesRecursive and io.listFiles are converted to JavaScript values before use in the in=ls input path to avoid mixed Java/JS object handling.

Description

  • In src/include/inputFns.js wrap listFilesRecursive(_res, isPosix) with af.fromJavaArray(...) and wrap io.listFiles(_res, isPosix) with af.fromJavaMap(...) before accessing .files, so in="ls" returns proper JS arrays/maps.

Testing

  • No automated tests were added or executed for this change.

@nmaguiar nmaguiar marked this pull request as ready for review March 9, 2026 10:19
@nmaguiar nmaguiar merged commit c3179b3 into main Mar 9, 2026
1 check failed
@nmaguiar nmaguiar deleted the codex/convert-listfilesrecursive-to-javascript branch March 9, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant