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

Change C file handling to fs:directory_entry #1312

Merged
merged 5 commits into from
Mar 15, 2021

Conversation

KarlStraussberger
Copy link
Member

No description provided.

@KarlStraussberger KarlStraussberger changed the title Change C file handling fs:directory_entry Change C file handling to fs:directory_entry Mar 14, 2021
Copy link
Member

@whyman whyman left a comment

Choose a reason for hiding this comment

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

Nice! I had a the same thoughts :)

src/content/content_manager.cc Outdated Show resolved Hide resolved
struct dirent* dent;
while ((dent = readdir(dir)) != nullptr) {
char* name = dent->d_name;
for (const auto& dirEnt : fs::directory_iterator(location, fs::directory_options::skip_permission_denied, ec)) {
Copy link
Member

Choose a reason for hiding this comment

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

dirEnt is redefined here, I wonder if we can give it a more clear name? or change the other one?

@whyman whyman merged commit 238c725 into gerbera:master Mar 15, 2021
@KarlStraussberger KarlStraussberger deleted the fs-directory-entry branch March 16, 2021 09:38
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.

None yet

2 participants