Skip to content

Commit

Permalink
Don't ignore empty files
Browse files Browse the repository at this point in the history
Adds empty files to the image list.

Resolves artemsen#129.

Signed-off-by: Artem Senichev <[email protected]>
  • Loading branch information
artemsen committed Apr 22, 2024
1 parent fa23eff commit 5be9926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imagelist.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static void add_dir(const char* dir, bool recursive)
if (recursive) {
add_dir(path, recursive);
}
} else if (file_stat.st_size) {
} else {
add_file(path);
}
}
Expand Down

0 comments on commit 5be9926

Please sign in to comment.