serve-handler icon indicating copy to clipboard operation
serve-handler copied to clipboard

Windows error in the root directory

Open Hill-98 opened this issue 6 years ago • 1 comments

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.

1.png

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.

Hill-98 avatar Nov 22 '19 20:11 Hill-98

shameless self-promotion alert:
this feature is fixed in my @warren-bank/serve fork of serve

warren-bank avatar Feb 16 '22 01:02 warren-bank