Windows error in the root directory
Hill-98 opened this issue · comments
Zhong Lufan (钟路帆) commented
Due to the direct use of fs.lstat
, in acquiring similar D: \ when the file, Windows system folder "System Volume Information" method would result in an exception.
Perhaps you can first use fs.readdir
list all the files, then use fs.lstat
to get detailed information and filter list.
So even if some files wrong, it will not affect the normal display other files.
Warren Bank commented
shameless self-promotion alert:
this feature is fixed in my @warren-bank/serve
fork of serve