From 1d8909b9b9da37d466d6dada81e8622a492ad5c1 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 d1eb765aad078b..20f041d5f1d696 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -421,24 +421,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} @@ -446,18 +458,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} @@ -520,6 +541,9 @@ The file system block size for i/o operations. The number of blocks allocated for this file. ### stats.atimeMs + * Value: {number} @@ -527,6 +551,9 @@ The timestamp indicating the last time this file was accessed expressed in milliseconds since the POSIX Epoch. ### stats.mtimeMs + * Value: {number} @@ -534,6 +561,9 @@ The timestamp indicating the last time this file was modified expressed in milliseconds since the POSIX Epoch. ### stats.ctimeMs + * Value: {number} @@ -541,6 +571,9 @@ The timestamp indicating the last time the file status was changed expressed in milliseconds since the POSIX Epoch. ### stats.birthtimeMs + * Value: {number} @@ -548,24 +581,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}