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

Add helper mg_fs_ls() #2596

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Add helper mg_fs_ls() #2596

merged 1 commit into from
Feb 1, 2024

Conversation

cpq
Copy link
Member

@cpq cpq commented Feb 1, 2024

No description provided.

@cpq cpq requested a review from scaprile February 1, 2024 17:45
src/fs.c Outdated
// This helper function allows to scan a filesystem in a sequential way,
// without using callback function:
// char buf[100] = "";
// while (mg_fs_ls(fs, "./my_data/", buf, sizeof(buf()) { ... }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while (mg_fs_ls(&mg_fs_posix, "./", buf, sizeof(buf))) {

@cpq cpq merged commit fa5aa30 into master Feb 1, 2024
41 of 42 checks passed
@cpq cpq deleted the ls branch February 1, 2024 18:25
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.

2 participants