summaryrefslogtreecommitdiff
path: root/docs/library
diff options
context:
space:
mode:
authorAlex Tran <alex.t.tran@gmail.com>2025-11-18 21:43:55 -0800
committerDamien George <damien@micropython.org>2025-11-21 13:47:02 +1100
commit7a15c97f069ed11fe0f7e697e240bec7eea4d0fb (patch)
tree425a1c277f5ac55bc36f7c2ace1dedbe6d324fe3 /docs/library
parent128420359e9144369df2ed24e99217b3dc54446f (diff)
docs/library/os: Clarify ilistdir tuples size element.
The currently documentation for ilistdir tuples says that the size element is included based on the platform. However, this is not the case as it is included based on the filesystem type. This commit makes the according adjustment. Fixes issue #17516. Signed-off-by: Alex Tran <alex.t.tran@gmail.com>
Diffstat (limited to 'docs/library')
-rw-r--r--docs/library/os.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/library/os.rst b/docs/library/os.rst
index bd552e36f..483ef1c0a 100644
--- a/docs/library/os.rst
+++ b/docs/library/os.rst
@@ -55,10 +55,9 @@ Filesystem access
directories and 0x8000 for regular files;
- *inode* is an integer corresponding to the inode of the file, and may be 0
for filesystems that don't have such a notion.
- - Some platforms may return a 4-tuple that includes the entry's *size*. For
- file entries, *size* is an integer representing the size of the file
- or -1 if unknown. Its meaning is currently undefined for directory
- entries.
+ - *size* is an integer that may be included depending on the filesystem type.
+ For file entries, *size* represents the size of the file or -1 if unknown.
+ Its meaning is currently undefined for directory entries.
.. function:: listdir([dir])