From 157fc28710178e328bd6d3a66c33e2649ba81155 Mon Sep 17 00:00:00 2001 From: jvelezpo Date: Fri, 9 Mar 2018 09:56:58 -0500 Subject: [PATCH] doc: add added in versions to fs.Stats properties Adds the added in label on the documentation for each one of the properties of Class: fs.Stats PR-URL: https://github.com/nodejs/node/pull/19266 Fixes: https://github.com/nodejs/node/issues/19178 Reviewed-By: Adrian Estrada Reviewed-By: James M Snell Reviewed-By: Trivikram Kamat --- doc/api/fs.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index 40fde4144fec07..8da0057eed8db9 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -422,24 +422,36 @@ Stats { ``` ### stats.isBlockDevice() + * Returns: {boolean} Returns `true` if the `fs.Stats` object describes a block device. ### stats.isCharacterDevice() + * Returns: {boolean} Returns `true` if the `fs.Stats` object describes a character device. ### stats.isDirectory() + * Returns: {boolean} Returns `true` if the `fs.Stats` object describes a file system directory. ### stats.isFIFO() + * Returns: {boolean} @@ -447,18 +459,27 @@ Returns `true` if the `fs.Stats` object describes a first-in-first-out (FIFO) pipe. ### stats.isFile() + * Returns: {boolean} Returns `true` if the `fs.Stats` object describes a regular file. ### stats.isSocket() + * Returns: {boolean} Returns `true` if the `fs.Stats` object describes a socket. ### stats.isSymbolicLink() + * Returns: {boolean} @@ -521,6 +542,9 @@ The file system block size for i/o operations. The number of blocks allocated for this file. ### stats.atimeMs + * Value: {number} @@ -528,6 +552,9 @@ The timestamp indicating the last time this file was accessed expressed in milliseconds since the POSIX Epoch. ### stats.mtimeMs + * Value: {number} @@ -535,6 +562,9 @@ The timestamp indicating the last time this file was modified expressed in milliseconds since the POSIX Epoch. ### stats.ctimeMs + * Value: {number} @@ -542,6 +572,9 @@ The timestamp indicating the last time the file status was changed expressed in milliseconds since the POSIX Epoch. ### stats.birthtimeMs + * Value: {number} @@ -549,24 +582,36 @@ The timestamp indicating the creation time of this file expressed in milliseconds since the POSIX Epoch. ### stats.atime + * Value: {Date} The timestamp indicating the last time this file was accessed. ### stats.mtime + * Value: {Date} The timestamp indicating the last time this file was modified. ### stats.ctime + * Value: {Date} The timestamp indicating the last time the file status was changed. ### stats.birthtime + * Value: {Date}