File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,21 @@ Functions
37
37
38
38
Get the current directory.
39
39
40
+ .. function :: ilistdir([dir])
41
+
42
+ This function returns an iterator which then yields 3-tuples corresponding to
43
+ the entries in the directory that it is listing. With no argument it lists the
44
+ current directory, otherwise it lists the directory given by `dir `.
45
+
46
+ The 3-tuples have the form `(name, type, inode) `:
47
+
48
+ - `name ` is a string (or bytes if `dir ` is a bytes object) and is the name of
49
+ the entry;
50
+ - `type ` is an integer that specifies the type of the entry, with 0x4000 for
51
+ directories and 0x8000 for regular files;
52
+ - `inode ` is an integer corresponding to the inode of the file, and may be 0
53
+ for filesystems that don't have such a notion.
54
+
40
55
.. function :: listdir([dir])
41
56
42
57
With no argument, list the current directory. Otherwise list the given directory.
You can’t perform that action at this time.
0 commit comments