From 4997d93b498094248bdc0669d9515f28f7a156ef Mon Sep 17 00:00:00 2001 From: "Michael Hirsch, Ph.D" Date: Mon, 11 Nov 2019 20:39:37 -0500 Subject: fs: add docs for fs.size() --- docs/markdown/Fs-module.md | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'docs') diff --git a/docs/markdown/Fs-module.md b/docs/markdown/Fs-module.md index 423ec8e..87cbe1a 100644 --- a/docs/markdown/Fs-module.md +++ b/docs/markdown/Fs-module.md @@ -39,6 +39,11 @@ by the string is a symbolic link. The `fs.hash(filename)` method computes the requested hash sum of a file. The available hash methods include: md5, sha1, sha224, sha256, sha384, sha512. +### size + +The `fs.size(filename)` method returns the size of the file in bytes. +Symlinks will be resolved if possible. + ### samefile The `fs.samefile(filename1, filename2)` method allows determining if two filenames refer to the same file. -- cgit v1.1