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

Function plugins_add_default_dir

lightningd/plugin.c:1943–1959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1941}
1942
1943void plugins_add_default_dir(struct plugins *plugins)
1944{
1945 DIR *d = opendir(plugins->default_dir);
1946 if (d) {
1947 struct dirent *di;
1948
1949 /* Add this directory itself, and recurse down once. */
1950 add_plugin_dir(plugins, plugins->default_dir, true);
1951 while ((di = readdir(d)) != NULL) {
1952 if (streq(di->d_name, ".") || streq(di->d_name, ".."))
1953 continue;
1954 add_plugin_dir(plugins, path_join(tmpctx, plugins->default_dir,
1955 di->d_name), true);
1956 }
1957 closedir(d);
1958 }
1959}
1960
1961static bool debugging(struct plugin *p)
1962{

Callers 2

plugins_initFunction · 0.85

Calls 2

add_plugin_dirFunction · 0.85
path_joinFunction · 0.85

Tested by

no test coverage detected