summaryrefslogtreecommitdiff
path: root/python/2/libmu_py/folder.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/2/libmu_py/folder.c')
-rw-r--r--python/2/libmu_py/folder.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/2/libmu_py/folder.c b/python/2/libmu_py/folder.c
index cf1ae6901..20b731f1b 100644
--- a/python/2/libmu_py/folder.c
+++ b/python/2/libmu_py/folder.c
@@ -203,21 +203,21 @@ static PyObject *
203api_folder_list (PyObject *self, PyObject *args) 203api_folder_list (PyObject *self, PyObject *args)
204{ 204{
205 int status = 0; 205 int status = 0;
206 Py_ssize_t max_level = 0; 206 Py_ssize_t max_depth = 0;
207 char *dirname, *pattern; 207 char *dirname, *pattern;
208 PyFolder *py_folder; 208 PyFolder *py_folder;
209 PyObject *py_list; 209 PyObject *py_list;
210 mu_list_t c_list = NULL; 210 mu_list_t c_list = NULL;
211 211
212 if (!PyArg_ParseTuple (args, "O!zs|n", &PyFolderType, &py_folder, 212 if (!PyArg_ParseTuple (args, "O!zs|n", &PyFolderType, &py_folder,
213 &dirname, &pattern, &max_level)) 213 &dirname, &pattern, &max_depth))
214 return NULL; 214 return NULL;
215 if (max_level < 0) 215 if (max_depth < 0)
216 { 216 {
217 PyErr_SetString (PyExc_RuntimeError, "max level out of range"); 217 PyErr_SetString (PyExc_RuntimeError, "max level out of range");
218 return NULL; 218 return NULL;
219 } 219 }
220 status = mu_folder_list (py_folder->folder, dirname, pattern, max_level, 220 status = mu_folder_list (py_folder->folder, dirname, pattern, max_depth,
221 &c_list); 221 &c_list);
222 222
223 if (c_list) 223 if (c_list)

Return to:

Send suggestions and report system problems to the System administrator.