fs: add docs for fs.size()

pull/6150/head
Michael Hirsch, Ph.D 5 years ago
parent 5db3f8ac3d
commit 4997d93b49
No known key found for this signature in database
GPG Key ID: 6D23CDADAB0294F9
  1. 5
      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.

Loading…
Cancel
Save