path<string> | <Buffer> | <URL>
- Returns: <fs.Dir>
Synchronously open a directory. See
Creates an <fs.Dir>, which contains all further functions for reading from and cleaning up the directory.
encoding option sets the encoding for the
path while opening the
directory and subsequent read operations.