summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-07-04 21:58:48 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-07-04 22:01:14 +0200
commitff448b909687fb9214ecd6afa39f7b996b2ae2f4 (patch)
tree1c82cb70a418b0f5e5c623c7fd2ff05d5d4e7b8f /doc/en
parent275389864be6b83f1b0fd2d51e5899b759e0b966 (diff)
downloadweechat-ff448b909687fb9214ecd6afa39f7b996b2ae2f4.zip
api: add argument "recurse_subdirs" in function exec_on_files()
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index 6030332cf..0fe5c6784 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -3171,7 +3171,7 @@ weechat.mkdir_parents("/tmp/my/dir", 0755)
==== exec_on_files
-_Updated in 1.5._
+_Updated in 1.5, 2.0._
Find files in a directory and execute a callback on each file.
@@ -3180,6 +3180,7 @@ Prototype:
[source,C]
----
void weechat_exec_on_files (const char *directory,
+ int recurse_subdirs,
int hidden_files,
void (*callback)(void *data,
const char *filename),
@@ -3189,6 +3190,7 @@ void weechat_exec_on_files (const char *directory,
Arguments:
* _directory_: directory for searching files
+* _recurse_subdirs_: 1 to recurse into sub-directories (_WeeChat ≥ 2.0_)
* _hidden_files_: 1 to include hidden files, otherwise 0
* _callback_: function called for each file found, arguments:
** _void *data_: pointer
@@ -3204,7 +3206,7 @@ void callback (void *data, const char *filename)
/* ... */
}
...
-weechat_exec_on_files ("/tmp", 0, &callback, NULL);
+weechat_exec_on_files ("/tmp", 0, 0, &callback, NULL);
----
[NOTE]