Repository navigation
feat(kode): List a folder from an entry on, for a task - #106
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 withkode_sys_file_list().kode_file_list_from(folder, skip)lists from the skip-th entry on, andkode_file_list(folder)is that with a skip of 0.appdata_lslists.kode/appsdataon both volumes, and a card with no app data has no such folder.Test Scenarios
tools/host_tests.shandtools/check_layers.sh, green at this branch.Related links
Closes #5