summaryrefslogtreecommitdiffabout
path: root/python/3/libmu_py/folder.c
Side-by-side diff
Diffstat (limited to 'python/3/libmu_py/folder.c') (more/less context) (ignore whitespace changes)
-rw-r--r--python/3/libmu_py/folder.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/3/libmu_py/folder.c b/python/3/libmu_py/folder.c
index 8b3dc93..b24bd0b 100644
--- a/python/3/libmu_py/folder.c
+++ b/python/3/libmu_py/folder.c
@@ -164,3 +164,3 @@ folderdata_extractor (void *data, PyObject **dst)
PyTuple_SetItem (*dst, 0, PyUnicode_FromString (attr));
- PyTuple_SetItem (*dst, 1, PyLong_FromLong (resp->level));
+ PyTuple_SetItem (*dst, 1, PyLong_FromLong (resp->depth));
PyTuple_SetItem (*dst, 2, PyUnicode_FromString (separator));
@@ -174,3 +174,3 @@ api_folder_list (PyObject *self, PyObject *args)
int status = 0;
- Py_ssize_t max_level = 0;
+ Py_ssize_t max_depth = 0;
char *dirname, *pattern;
@@ -181,5 +181,5 @@ api_folder_list (PyObject *self, PyObject *args)
if (!PyArg_ParseTuple (args, "O!zs|n", &PyFolderType, &py_folder,
- &dirname, &pattern, &max_level))
+ &dirname, &pattern, &max_depth))
return NULL;
- if (max_level < 0)
+ if (max_depth < 0)
{
@@ -188,3 +188,3 @@ api_folder_list (PyObject *self, PyObject *args)
}
- status = mu_folder_list (py_folder->folder, dirname, pattern, max_level,
+ status = mu_folder_list (py_folder->folder, dirname, pattern, max_depth,
&c_list);

Return to:

Send suggestions and report system problems to the System administrator.