Skip to content

feat(kode): List a folder from an entry on, for a task - #106

Merged
jbenedictocenteno merged 2 commits into
developfrom
feat/file-list-from
Nov 13, 2026
Merged

jbenedictocenteno merged 2 commits into
developfrom
feat/file-list-from

Conversation

@jbenedictocenteno

Copy link
Copy Markdown
Contributor

Description of Change

kode_file_list() gives the first 24 entries of a folder and says there are more, and a task had no way to read the rest. An Active Object already reads a folder a page at a time with kode_sys_file_list().

  • kode_file_list_from(folder, skip) lists from the skip-th entry on, and kode_file_list(folder) is that with a skip of 0.
  • A listing that fails on a path with nothing at it is a debug line in AO_Storage, not a warning: appdata_ls lists .kode/appsdata on both volumes, and a card with no app data has no such folder.

Test Scenarios

  • tools/host_tests.sh and tools/check_layers.sh, green at this branch.
  • kodeOS built from the whole series this belongs to ran the bench's console and file checks on two DVT boards (e8:f6:0a:e7:6c:01 and e8:f6:0a:e7:6b:d5): 77 and 68 checks, all passing.

Related links

Closes #5

kode_file_list() gives the first 24 entries of a folder and says there
are more, and a task had no way to read the rest. An Active Object
already reads a folder a page at a time with kode_sys_file_list().

kode_file_list_from(folder, skip) lists from the skip-th entry on, and
kode_file_list(folder) is that with a skip of 0. The skip rides the
blocked task's STORAGE_PATH_LIST the way an ask's already did.

Closes #5
appdata_ls lists .kode/appsdata on both volumes without asking whether
the folder exists, and a board with no app data on its card has none.
AO_Storage logged that as a warning, 'cannot list', for a normal state.

A listing that fails on a path with nothing at it is a debug line now.
Any other failure still warns.
@jbenedictocenteno
jbenedictocenteno merged commit 29c7058 into develop Nov 13, 2026
1 of 7 checks passed
@jbenedictocenteno
jbenedictocenteno deleted the feat/file-list-from branch November 13, 2026 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

kode.h: a task cannot read a file at an offset, write bytes, or list past 24 entries

1 participant