diff options
author | David Robillard <d@drobilla.net> | 2020-08-05 23:35:42 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-08-06 17:34:42 +0200 |
commit | 17888cbea7107d22034d761ee6f5abceedf6e6d3 (patch) | |
tree | 1b1309b220eb6ddc375b626eb76cbcf09b207df3 /src/world.c | |
parent | 36af38408e9e5ba2c49738ad08ff2b959bcf7e27 (diff) | |
download | lilv-17888cbea7107d22034d761ee6f5abceedf6e6d3.tar.gz lilv-17888cbea7107d22034d761ee6f5abceedf6e6d3.tar.bz2 lilv-17888cbea7107d22034d761ee6f5abceedf6e6d3.zip |
Make lilv_dir_for_each() ignore dot entries
Diffstat (limited to 'src/world.c')
-rw-r--r-- | src/world.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/world.c b/src/world.c index 17896ee..7095a6e 100644 --- a/src/world.c +++ b/src/world.c @@ -956,13 +956,9 @@ static void load_dir_entry(const char* dir, const char* name, void* data) { LilvWorld* world = (LilvWorld*)data; - if (!strcmp(name, ".") || !strcmp(name, "..")) { - return; - } - - char* path = lilv_strjoin(dir, "/", name, "/", NULL); - SerdNode suri = serd_node_new_file_uri((const uint8_t*)path, 0, 0, true); - LilvNode* node = lilv_new_uri(world, (const char*)suri.buf); + char* path = lilv_strjoin(dir, "/", name, "/", NULL); + SerdNode suri = serd_node_new_file_uri((const uint8_t*)path, 0, 0, true); + LilvNode* node = lilv_new_uri(world, (const char*)suri.buf); lilv_world_load_bundle(world, node); lilv_node_free(node); |