Fetching metadata

Reading directory listings, fetching permissions, and getting the time of creation and modification. These are all essential pieces of the filesystem tool kit.

fs and POSIX
Most of the fs module methods are light wrappers around POSIX operations (with shims for Windows), so many of the concepts and names should be similar if we've indulged in any system programming or even shell scripting.

In this recipe, we're going to write a CLI tool that supplies in-depth information about files and directories for a given path.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.5.86