From b3fde348e4345866fb18b350bc86aec71bbd4336 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Fri, 17 Jul 2015 09:26:08 +0200 Subject: [PATCH] doc: add a note about uv_dirent_t.type On Linux getting the type is only supported by some filesystems, check getdents(2). --- docs/src/fs.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/src/fs.rst b/docs/src/fs.rst index a46a07fa..33c04406 100644 --- a/docs/src/fs.rst +++ b/docs/src/fs.rst @@ -214,6 +214,10 @@ API .. note:: Unlike `scandir(3)`, this function does not return the "." and ".." entries. + .. note:: + On Linux, getting the type of an entry is only supported by some filesystems (btrfs, ext2, + ext3 and ext4 at the time of this writing), check the :man:`getdents(2)` man page. + .. c:function:: int uv_fs_stat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb) .. c:function:: int uv_fs_fstat(uv_loop_t* loop, uv_fs_t* req, uv_file file, uv_fs_cb cb) .. c:function:: int uv_fs_lstat(uv_loop_t* loop, uv_fs_t* req, const char* path, uv_fs_cb cb)