summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--examples/lsf.c2
-rw-r--r--include/mailutils/cpp/folder.h4
-rw-r--r--include/mailutils/folder.h9
-rw-r--r--libmailutils/mailbox/folder.c8
-rw-r--r--libmailutils/mailbox/fsfolder.c12
-rw-r--r--libmailutils/tests/fsfolder.c8
-rw-r--r--libmu_cpp/folder.cc8
-rw-r--r--libproto/imap/folder.c4
-rw-r--r--libproto/imap/genlist.c12
-rw-r--r--libproto/imap/tests/imapfolder.c2
-rw-r--r--libproto/nntp/folder.c2
-rw-r--r--mu/libexec/imap.c2
-rw-r--r--python/2/libmu_py/folder.c8
-rw-r--r--python/2/mailutils/folder.py4
-rw-r--r--python/3/libmu_py/folder.c10
-rw-r--r--python/3/mailutils/folder.py4
16 files changed, 50 insertions, 49 deletions
diff --git a/examples/lsf.c b/examples/lsf.c
index cba79d3..c386893 100644
--- a/examples/lsf.c
+++ b/examples/lsf.c
@@ -29,7 +29,7 @@ enumfun (mu_folder_t folder, struct mu_list_response *resp, void *data)
29 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-', 29 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-',
30 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-', 30 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-',
31 resp->separator, 31 resp->separator,
32 resp->level, 32 resp->depth,
33 resp->name); 33 resp->name);
34 return 0; 34 return 0;
35} 35}
diff --git a/include/mailutils/cpp/folder.h b/include/mailutils/cpp/folder.h
index fe4ed77..97c6d0f 100644
--- a/include/mailutils/cpp/folder.h
+++ b/include/mailutils/cpp/folder.h
@@ -43,9 +43,9 @@ class Folder
43 void open (int flag); 43 void open (int flag);
44 void close (); 44 void close ();
45 45
46 List& list (const std::string& dirname, void* pattern, size_t max_level); 46 List& list (const std::string& dirname, void* pattern, size_t max_depth);
47 List& enumerate (const std::string& name, void* pattern, 47 List& enumerate (const std::string& name, void* pattern,
48 int flags, size_t max_level, 48 int flags, size_t max_depth,
49 mu_folder_enumerate_fp enumfun, void* enumdata); 49 mu_folder_enumerate_fp enumfun, void* enumdata);
50 50
51 Url& get_url (); 51 Url& get_url ();
diff --git a/include/mailutils/folder.h b/include/mailutils/folder.h
index 4ca4b92..ceb54dd 100644
--- a/include/mailutils/folder.h
+++ b/include/mailutils/folder.h
@@ -27,9 +27,9 @@ extern "C" {
27struct mu_list_response 27struct mu_list_response
28{ 28{
29 int type; /* MU_FOLDER_ATTRIBUTE_.* flags */ 29 int type; /* MU_FOLDER_ATTRIBUTE_.* flags */
30 int level; 30 int depth; /* Item depth within the hierarchy */
31 int separator; 31 int separator; /* Directory separator character */
32 char *name; 32 char *name; /* Item name */
33 mu_record_t format; /* Associated mailbox format record */ 33 mu_record_t format; /* Associated mailbox format record */
34}; 34};
35 35
@@ -66,7 +66,8 @@ struct mu_folder_scanner
66 char const *refname; /* Reference name */ 66 char const *refname; /* Reference name */
67 void *pattern; /* Matching pattern */ 67 void *pattern; /* Matching pattern */
68 int match_flags; /* Matching flags */ 68 int match_flags; /* Matching flags */
69 size_t max_level; /* Max. nesting level to descend */ 69 size_t max_depth; /* Max. depth to descend
70 (1-based, 0 means 'unlimited') */
70 mu_folder_enumerate_fp enumfun; /* Enumeration function */ 71 mu_folder_enumerate_fp enumfun; /* Enumeration function */
71 void *enumdata; /* Data for enumfun */ 72 void *enumdata; /* Data for enumfun */
72 mu_list_t records; /* List of allowed records */ 73 mu_list_t records; /* List of allowed records */
diff --git a/libmailutils/mailbox/folder.c b/libmailutils/mailbox/folder.c
index 8a474c8..d22bb33 100644
--- a/libmailutils/mailbox/folder.c
+++ b/libmailutils/mailbox/folder.c
@@ -356,18 +356,18 @@ mu_folder_scan (mu_folder_t folder, struct mu_folder_scanner *scn)
356 356
357int 357int
358mu_folder_list (mu_folder_t folder, const char *dirname, void *pattern, 358mu_folder_list (mu_folder_t folder, const char *dirname, void *pattern,
359 size_t max_level, 359 size_t max_depth,
360 mu_list_t *pflist) 360 mu_list_t *pflist)
361{ 361{
362 return mu_folder_enumerate (folder, dirname, pattern, 362 return mu_folder_enumerate (folder, dirname, pattern,
363 MU_FOLDER_ATTRIBUTE_ALL, max_level, 363 MU_FOLDER_ATTRIBUTE_ALL, max_depth,
364 pflist, NULL, NULL); 364 pflist, NULL, NULL);
365} 365}
366 366
367int 367int
368mu_folder_enumerate (mu_folder_t folder, const char *name, 368mu_folder_enumerate (mu_folder_t folder, const char *name,
369 void *pattern, int flags, 369 void *pattern, int flags,
370 size_t max_level, 370 size_t max_depth,
371 mu_list_t *pflist, 371 mu_list_t *pflist,
372 mu_folder_enumerate_fp enumfun, void *enumdata) 372 mu_folder_enumerate_fp enumfun, void *enumdata)
373{ 373{
@@ -383,7 +383,7 @@ mu_folder_enumerate (mu_folder_t folder, const char *name,
383 scn.refname = name; 383 scn.refname = name;
384 scn.pattern = pattern; 384 scn.pattern = pattern;
385 scn.match_flags = flags; 385 scn.match_flags = flags;
386 scn.max_level = max_level; 386 scn.max_depth = max_depth;
387 scn.enumfun = enumfun; 387 scn.enumfun = enumfun;
388 scn.enumdata = enumdata; 388 scn.enumdata = enumdata;
389 scn.records = NULL; 389 scn.records = NULL;
diff --git a/libmailutils/mailbox/fsfolder.c b/libmailutils/mailbox/fsfolder.c
index 553c9fd..4afdbd6 100644
--- a/libmailutils/mailbox/fsfolder.c
+++ b/libmailutils/mailbox/fsfolder.c
@@ -294,13 +294,13 @@ static int
294list_helper (struct mu_folder_scanner *scn, 294list_helper (struct mu_folder_scanner *scn,
295 struct folder_scan_data *data, 295 struct folder_scan_data *data,
296 struct inode_list *ilist, 296 struct inode_list *ilist,
297 const char *dirname, size_t level) 297 const char *dirname, size_t depth)
298{ 298{
299 DIR *dirp; 299 DIR *dirp;
300 struct dirent *dp; 300 struct dirent *dp;
301 int stop = 0; 301 int stop = 0;
302 302
303 if (scn->max_level && level >= scn->max_level) 303 if (scn->max_depth && depth >= scn->max_depth)
304 return 0; 304 return 0;
305 305
306 dirp = opendir (dirname); 306 dirp = opendir (dirname);
@@ -377,7 +377,7 @@ list_helper (struct mu_folder_scanner *scn,
377 else 377 else
378 { 378 {
379 resp->name = fname; 379 resp->name = fname;
380 resp->level = level; 380 resp->depth = depth;
381 resp->separator = '/'; 381 resp->separator = '/';
382 resp->type = type; 382 resp->type = type;
383 resp->format = rec; 383 resp->format = rec;
@@ -421,7 +421,7 @@ list_helper (struct mu_folder_scanner *scn,
421 idata.dev = st.st_dev; 421 idata.dev = st.st_dev;
422 idata.next = ilist; 422 idata.next = ilist;
423 stop = list_helper (scn, data, &idata, refname, 423 stop = list_helper (scn, data, &idata, refname,
424 level + 1); 424 depth + 1);
425 } 425 }
426 } 426 }
427 else if (S_ISDIR (st.st_mode)) 427 else if (S_ISDIR (st.st_mode))
@@ -431,7 +431,7 @@ list_helper (struct mu_folder_scanner *scn,
431 idata.inode = st.st_ino; 431 idata.inode = st.st_ino;
432 idata.dev = st.st_dev; 432 idata.dev = st.st_dev;
433 idata.next = ilist; 433 idata.next = ilist;
434 stop = list_helper (scn, data, &idata, fname, level + 1); 434 stop = list_helper (scn, data, &idata, fname, depth + 1);
435 } 435 }
436 } 436 }
437 } 437 }
@@ -508,7 +508,7 @@ _fsfolder_lsub (mu_folder_t folder, const char *ref, const char *name,
508 break; 508 break;
509 } 509 }
510 resp->type = MU_FOLDER_ATTRIBUTE_FILE; 510 resp->type = MU_FOLDER_ATTRIBUTE_FILE;
511 resp->level = 0; 511 resp->depth = 0;
512 resp->separator = '/'; 512 resp->separator = '/';
513 rc = mu_list_append (flist, resp); 513 rc = mu_list_append (flist, resp);
514 if (rc) 514 if (rc)
diff --git a/libmailutils/tests/fsfolder.c b/libmailutils/tests/fsfolder.c
index 5a4d9df..e6c45b7 100644
--- a/libmailutils/tests/fsfolder.c
+++ b/libmailutils/tests/fsfolder.c
@@ -44,9 +44,9 @@ compare_response (void const *a, void const *b)
44 struct mu_list_response const *ra = a; 44 struct mu_list_response const *ra = a;
45 struct mu_list_response const *rb = b; 45 struct mu_list_response const *rb = b;
46 46
47 if (ra->level < rb->level) 47 if (ra->depth < rb->depth)
48 return -1; 48 return -1;
49 if (ra->level > rb->level) 49 if (ra->depth > rb->depth)
50 return 1; 50 return 1;
51 return strcmp (ra->name, rb->name); 51 return strcmp (ra->name, rb->name);
52} 52}
@@ -60,7 +60,7 @@ _print_list_entry (void *item, void *data)
60 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-', 60 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-',
61 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-', 61 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-',
62 resp->separator ? resp->separator : ' ', 62 resp->separator ? resp->separator : ' ',
63 resp->level, 63 resp->depth,
64 resp->name + len); 64 resp->name + len);
65 return 0; 65 return 0;
66} 66}
@@ -173,7 +173,7 @@ com_scan (int argc, char **argv, mu_assoc_t options, void *env)
173 { 173 {
174 char *p; 174 char *p;
175 errno = 0; 175 errno = 0;
176 scn.max_level = strtoul (s, &p, 10); 176 scn.max_depth = strtoul (s, &p, 10);
177 if (errno || *p) 177 if (errno || *p)
178 { 178 {
179 mu_error ("-maxdepth=%s: invalid depth", s); 179 mu_error ("-maxdepth=%s: invalid depth", s);
diff --git a/libmu_cpp/folder.cc b/libmu_cpp/folder.cc
index ebc7401..cf6857f 100644
--- a/libmu_cpp/folder.cc
+++ b/libmu_cpp/folder.cc
@@ -82,12 +82,12 @@ Folder :: close ()
82 82
83List& 83List&
84Folder :: list (const std::string& dirname, void* pattern, 84Folder :: list (const std::string& dirname, void* pattern,
85 size_t max_level = 0) 85 size_t max_depth = 0)
86{ 86{
87 mu_list_t c_list; 87 mu_list_t c_list;
88 88
89 int status = mu_folder_list (folder, dirname.c_str (), pattern, 89 int status = mu_folder_list (folder, dirname.c_str (), pattern,
90 max_level, &c_list); 90 max_depth, &c_list);
91 if (status) 91 if (status)
92 throw Exception ("Folder::list", status); 92 throw Exception ("Folder::list", status);
93 93
@@ -96,13 +96,13 @@ Folder :: list (const std::string& dirname, void* pattern,
96 96
97List& 97List&
98Folder :: enumerate (const std::string& name, void* pattern, 98Folder :: enumerate (const std::string& name, void* pattern,
99 int flags, size_t max_level, 99 int flags, size_t max_depth,
100 mu_folder_enumerate_fp enumfun, void* enumdata) 100 mu_folder_enumerate_fp enumfun, void* enumdata)
101{ 101{
102 mu_list_t c_list; 102 mu_list_t c_list;
103 103
104 int status = mu_folder_enumerate (folder, name.c_str (), pattern, 104 int status = mu_folder_enumerate (folder, name.c_str (), pattern,
105 flags, max_level, &c_list, 105 flags, max_depth, &c_list,
106 enumfun, enumdata); 106 enumfun, enumdata);
107 if (status) 107 if (status)
108 throw Exception ("Folder::enumerate", status); 108 throw Exception ("Folder::enumerate", status);
diff --git a/libproto/imap/folder.c b/libproto/imap/folder.c
index 5e43312..9e23847 100644
--- a/libproto/imap/folder.c
+++ b/libproto/imap/folder.c
@@ -272,7 +272,7 @@ _mu_imap_folder_list (mu_folder_t folder, struct mu_folder_scanner *scn)
272 if (rc) 272 if (rc)
273 return rc; 273 return rc;
274 274
275 if (scn->max_level 275 if (scn->max_depth
276 || (scn->match_flags & MU_FOLDER_ATTRIBUTE_ALL) != MU_FOLDER_ATTRIBUTE_ALL) 276 || (scn->match_flags & MU_FOLDER_ATTRIBUTE_ALL) != MU_FOLDER_ATTRIBUTE_ALL)
277 { 277 {
278 /* Filter out the list, eliminating non-matching entries */ 278 /* Filter out the list, eliminating non-matching entries */
@@ -292,7 +292,7 @@ _mu_imap_folder_list (mu_folder_t folder, struct mu_folder_scanner *scn)
292 292
293 mu_iterator_current (itr, (void**) &rp); 293 mu_iterator_current (itr, (void**) &rp);
294 if (!(rp->type & scn->match_flags) 294 if (!(rp->type & scn->match_flags)
295 || (scn->max_level && rp->level > scn->max_level)) 295 || (scn->max_depth && rp->depth > scn->max_depth))
296 mu_iterator_ctl (itr, mu_itrctl_delete, NULL); 296 mu_iterator_ctl (itr, mu_itrctl_delete, NULL);
297 } 297 }
298 mu_iterator_destroy (&itr); 298 mu_iterator_destroy (&itr);
diff --git a/libproto/imap/genlist.c b/libproto/imap/genlist.c
index 1e2de88..13352b6 100644
--- a/libproto/imap/genlist.c
+++ b/libproto/imap/genlist.c
@@ -37,14 +37,14 @@ struct list_closure
37}; 37};
38 38
39static int 39static int
40count_level (const char *name, int delim) 40count_depth (const char *name, int delim)
41{ 41{
42 int level = 0; 42 int depth = 0;
43 43
44 while (*name) 44 while (*name)
45 if (*name++ == delim) 45 if (*name++ == delim)
46 level++; 46 depth++;
47 return level; 47 return depth;
48} 48}
49 49
50static int 50static int
@@ -109,14 +109,14 @@ list_untagged_handler (mu_imap_t imap, mu_list_t resp, void *data)
109 if (_mu_imap_list_element_is_nil (elt)) 109 if (_mu_imap_list_element_is_nil (elt))
110 { 110 {
111 rp->separator = 0; 111 rp->separator = 0;
112 rp->level = 0; 112 rp->depth = 0;
113 } 113 }
114 else if (elt->type != imap_eltype_string) 114 else if (elt->type != imap_eltype_string)
115 return; 115 return;
116 else 116 else
117 { 117 {
118 rp->separator = elt->v.string[0]; 118 rp->separator = elt->v.string[0];
119 rp->level = count_level (rp->name, rp->separator); 119 rp->depth = count_depth (rp->name, rp->separator);
120 } 120 }
121 if ((clos->error_code = mu_list_append (clos->retlist, rp))) 121 if ((clos->error_code = mu_list_append (clos->retlist, rp)))
122 mu_list_response_free (rp); 122 mu_list_response_free (rp);
diff --git a/libproto/imap/tests/imapfolder.c b/libproto/imap/tests/imapfolder.c
index 8d3f6ce..2de8506 100644
--- a/libproto/imap/tests/imapfolder.c
+++ b/libproto/imap/tests/imapfolder.c
@@ -37,7 +37,7 @@ _print_list_entry (void *item, void *data)
37 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-', 37 (resp->type & MU_FOLDER_ATTRIBUTE_DIRECTORY) ? 'd' : '-',
38 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-', 38 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-',
39 resp->separator ? resp->separator : ' ', 39 resp->separator ? resp->separator : ' ',
40 resp->level, 40 resp->depth,
41 resp->name); 41 resp->name);
42 return 0; 42 return 0;
43} 43}
diff --git a/libproto/nntp/folder.c b/libproto/nntp/folder.c
index bdc16f5..8919a03 100644
--- a/libproto/nntp/folder.c
+++ b/libproto/nntp/folder.c
@@ -189,7 +189,7 @@ nntp_folder_destroy (mu_folder_t folder)
189 189
190static int 190static int
191nntp_folder_list (mu_folder_t folder, const char *ref, void *pat, int flags, 191nntp_folder_list (mu_folder_t folder, const char *ref, void *pat, int flags,
192 size_t max_level, mu_list_t flist, 192 size_t max_depth, mu_list_t flist,
193 mu_folder_enumerate_fp efp, void *edp) 193 mu_folder_enumerate_fp efp, void *edp)
194{ 194{
195 return ENOTSUP; 195 return ENOTSUP;
diff --git a/mu/libexec/imap.c b/mu/libexec/imap.c
index 3496e5b..8136f4b 100644
--- a/mu/libexec/imap.c
+++ b/mu/libexec/imap.c
@@ -1124,7 +1124,7 @@ print_list_item (void *item, void *data)
1124 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-', 1124 (resp->type & MU_FOLDER_ATTRIBUTE_FILE) ? 'f' : '-',
1125 resp->separator ? 1125 resp->separator ?
1126 resp->separator : MU_HIERARCHY_DELIMITER, 1126 resp->separator : MU_HIERARCHY_DELIMITER,
1127 resp->level, 1127 resp->depth,
1128 resp->name); 1128 resp->name);
1129 return 0; 1129 return 0;
1130} 1130}
diff --git a/python/2/libmu_py/folder.c b/python/2/libmu_py/folder.c
index cf1ae69..20b731f 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)
diff --git a/python/2/mailutils/folder.py b/python/2/mailutils/folder.py
index ecd3fc9..8e33d65 100644
--- a/python/2/mailutils/folder.py
+++ b/python/2/mailutils/folder.py
@@ -66,8 +66,8 @@ class Folder:
66 raise FolderError (status) 66 raise FolderError (status)
67 return url.Url (u) 67 return url.Url (u)
68 68
69 def list (self, dirname, pattern, max_level=0): 69 def list (self, dirname, pattern, max_depth=0):
70 status, lst = folder.list (self.folder, dirname, pattern, max_level) 70 status, lst = folder.list (self.folder, dirname, pattern, max_depth)
71 if status: 71 if status:
72 raise FolderError (status) 72 raise FolderError (status)
73 return lst 73 return lst
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
@@ -162,7 +162,7 @@ folderdata_extractor (void *data, PyObject **dst)
162 162
163 *dst = PyTuple_New (4); 163 *dst = PyTuple_New (4);
164 PyTuple_SetItem (*dst, 0, PyUnicode_FromString (attr)); 164 PyTuple_SetItem (*dst, 0, PyUnicode_FromString (attr));
165 PyTuple_SetItem (*dst, 1, PyLong_FromLong (resp->level)); 165 PyTuple_SetItem (*dst, 1, PyLong_FromLong (resp->depth));
166 PyTuple_SetItem (*dst, 2, PyUnicode_FromString (separator)); 166 PyTuple_SetItem (*dst, 2, PyUnicode_FromString (separator));
167 PyTuple_SetItem (*dst, 3, PyUnicode_FromString (resp->name)); 167 PyTuple_SetItem (*dst, 3, PyUnicode_FromString (resp->name));
168 return 0; 168 return 0;
@@ -172,21 +172,21 @@ static PyObject *
172api_folder_list (PyObject *self, PyObject *args) 172api_folder_list (PyObject *self, PyObject *args)
173{ 173{
174 int status = 0; 174 int status = 0;
175 Py_ssize_t max_level = 0; 175 Py_ssize_t max_depth = 0;
176 char *dirname, *pattern; 176 char *dirname, *pattern;
177 PyFolder *py_folder; 177 PyFolder *py_folder;
178 PyObject *py_list; 178 PyObject *py_list;
179 mu_list_t c_list = NULL; 179 mu_list_t c_list = NULL;
180 180
181 if (!PyArg_ParseTuple (args, "O!zs|n", &PyFolderType, &py_folder, 181 if (!PyArg_ParseTuple (args, "O!zs|n", &PyFolderType, &py_folder,
182 &dirname, &pattern, &max_level)) 182 &dirname, &pattern, &max_depth))
183 return NULL; 183 return NULL;
184 if (max_level < 0) 184 if (max_depth < 0)
185 { 185 {
186 PyErr_SetString (PyExc_RuntimeError, "max level out of range"); 186 PyErr_SetString (PyExc_RuntimeError, "max level out of range");
187 return NULL; 187 return NULL;
188 } 188 }
189 status = mu_folder_list (py_folder->folder, dirname, pattern, max_level, 189 status = mu_folder_list (py_folder->folder, dirname, pattern, max_depth,
190 &c_list); 190 &c_list);
191 191
192 if (c_list) 192 if (c_list)
diff --git a/python/3/mailutils/folder.py b/python/3/mailutils/folder.py
index ecd3fc9..8e33d65 100644
--- a/python/3/mailutils/folder.py
+++ b/python/3/mailutils/folder.py
@@ -66,8 +66,8 @@ class Folder:
66 raise FolderError (status) 66 raise FolderError (status)
67 return url.Url (u) 67 return url.Url (u)
68 68
69 def list (self, dirname, pattern, max_level=0): 69 def list (self, dirname, pattern, max_depth=0):
70 status, lst = folder.list (self.folder, dirname, pattern, max_level) 70 status, lst = folder.list (self.folder, dirname, pattern, max_depth)
71 if status: 71 if status:
72 raise FolderError (status) 72 raise FolderError (status)
73 return lst 73 return lst

Return to:

Send suggestions and report system problems to the System administrator.