The call fs.stat() reduces performance somewhat, and is completely
unnecessary, unless readdir is presumed to be an untrustworthy
indicator of file existence.
We can handle the error when attempting to read a directory as a file.
Important: this broken change. The mode and date won't be saved for files.
The call
fs.stat()
reduces performance somewhat, and is completely unnecessary, unless readdir is presumed to be an untrustworthy indicator of file existence.We can handle the error when attempting to read a directory as a file.
Important: this broken change. The
mode
anddate
won't be saved for files.Need to implement in separate task #49.