]> Kevux Git Server - fll/commit
Feature: Add new function fl_directory_empty().
authorKevin Day <Kevin@kevux.org>
Fri, 17 Jan 2025 05:04:47 +0000 (23:04 -0600)
committerKevin Day <Kevin@kevux.org>
Sat, 18 Jan 2025 02:50:58 +0000 (20:50 -0600)
commitea9fd754ab92652e5ac220052d8cb5f8dac1853f
tree5119919be9bed3aa01b88c35de9b1dec5ba771d2
parent72106a51ed81af3353691ccf26720bc926752fd4
Feature: Add new function fl_directory_empty().

Simplify the process of determining if the directory is empty.
The entire list of directories do not need to be processed in this case.
Only check if the first child in the directory exists.
23 files changed:
level_0/f_directory/c/directory.c
level_0/f_directory/c/directory.h
level_0/f_directory/data/build/settings-mocks
level_0/f_directory/data/build/settings-tests
level_0/f_directory/tests/unit/c/mock-directory.c
level_0/f_directory/tests/unit/c/mock-directory.h
level_0/f_directory/tests/unit/c/test-directory-create.c
level_0/f_directory/tests/unit/c/test-directory-create_at.c
level_0/f_directory/tests/unit/c/test-directory-empty.c [new file with mode: 0644]
level_0/f_directory/tests/unit/c/test-directory-empty.h [new file with mode: 0644]
level_0/f_directory/tests/unit/c/test-directory-exists.c
level_0/f_directory/tests/unit/c/test-directory-exists_at.c
level_0/f_directory/tests/unit/c/test-directory-is.c
level_0/f_directory/tests/unit/c/test-directory-is_at.c
level_0/f_directory/tests/unit/c/test-directory-list.c
level_0/f_directory/tests/unit/c/test-directory-open.c
level_0/f_directory/tests/unit/c/test-directory-open_at.c
level_0/f_directory/tests/unit/c/test-directory-remove.c
level_0/f_directory/tests/unit/c/test-directory-remove_custom.c
level_0/f_directory/tests/unit/c/test-directory-touch.c
level_0/f_directory/tests/unit/c/test-directory-touch_at.c
level_0/f_directory/tests/unit/c/test-directory.c
level_0/f_directory/tests/unit/c/test-directory.h