summaryrefslogtreecommitdiffstatshomepage
path: root/windows
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-14 23:48:12 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2015-12-14 23:48:12 +0200
commitd874702fe1e5822f8a3e1662657ac27d0b15bb68 (patch)
tree45fcdd6eea42ab8c6e6b324f96c785a12477ed9f /windows
parent1a1cceaf6f42332aee3ab69d52488d7cd5f8fd30 (diff)
downloadmicropython-d874702fe1e5822f8a3e1662657ac27d0b15bb68.tar.gz
micropython-d874702fe1e5822f8a3e1662657ac27d0b15bb68.zip
unix/modos: Implement ilistdir().
ilistdir() returns iterator which yields triples of (name, type, ino) where ino is inode number for entry's data, type of entry (file/dir/etc.), and name of file/dir. listdir() can be easily implemented in terms of this iterator (which is otherwise more efficient in terms of memory use and may save expensive call to stat() for each returned entry). CPython has os.scandir() which also returns an iterator, but it yields more complex objects of DirEntry type. scandir() can also be easily implemented in terms of ilistdir().
Diffstat (limited to 'windows')
0 files changed, 0 insertions, 0 deletions