MCPcopy Create free account
hub / github.com/ElementsProject/lightning / plugins_add_default_dir

Function plugins_add_default_dir

lightningd/plugin.c:1931–1947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1929}
1930
1931void plugins_add_default_dir(struct plugins *plugins)
1932{
1933 DIR *d = opendir(plugins->default_dir);
1934 if (d) {
1935 struct dirent *di;
1936
1937 /* Add this directory itself, and recurse down once. */
1938 add_plugin_dir(plugins, plugins->default_dir, true);
1939 while ((di = readdir(d)) != NULL) {
1940 if (streq(di->d_name, ".") || streq(di->d_name, ".."))
1941 continue;
1942 add_plugin_dir(plugins, path_join(tmpctx, plugins->default_dir,
1943 di->d_name), true);
1944 }
1945 closedir(d);
1946 }
1947}
1948
1949static bool debugging(struct plugin *p)
1950{

Callers 2

plugins_initFunction · 0.85

Calls 2

add_plugin_dirFunction · 0.85
path_joinFunction · 0.85

Tested by

no test coverage detected