Computer scienceBackendNode.jsCore ConceptsInternal modulesFile system module

lstat, fstat and stat

Theory

Retrieve file information

Report a typo

Arrange the following steps in the correct order to retrieve file information using fs.fstat():

Put the items in the correct order
Define the file's path.
Close the file descriptor using fs.closeSync().
Open the file using fs.openSync() and obtain a file descriptor.
Use fs.fstat() to gather metadata about the file.

Create a free account to access the full topic