Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FeatureRequest]: Functions to list directory contents (emulating M20) #950

Open
owendare opened this issue Jan 25, 2024 · 1 comment
Open
Assignees
Labels
enhancement Additional functionality, performance or other feature request
Milestone

Comments

@owendare
Copy link

Is your feature request related to a problem? Please describe.

It would be handy if we had a function that emulated M20, but put the list into an array.
I recently did macro to allow the list of filaments to be displayed on a panelDue so the user can change filaments.
But there's no way to dynamically create the array based on the contents of the filaments directory.

Describe the solution you propose.

Either extend M20 with a parameter option to save the contents into a specified array or create a dedicated function(s) which can be called in code.
Perhaps dirList() and/or fileList()

Describe alternatives you've considered

None seem possible as there is no way to parse a json response in a met command

Provide any additional context or information.

Ex. Photos, mockups, etc.

@owendare owendare added the enhancement Additional functionality, performance or other feature request label Jan 25, 2024
@T3P3 T3P3 assigned dc42 and unassigned x0rtrunks Feb 7, 2024
@T3P3 T3P3 added this to the After 3.6 milestone Feb 7, 2024
@T3P3
Copy link
Contributor

T3P3 commented Feb 7, 2024

To avoid running out of RAM will need to be bounded in chucks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additional functionality, performance or other feature request
Projects
None yet
Development

No branches or pull requests

4 participants