Closed mertkahyaoglu closed 4 years ago
Since directories do not have extname, when switched to index listing, FilePreview was throwing an error saying file.extname is undefined. Fixed it by checking file type before accessing extname.
extname
FilePreview
file.extname
Since directories do not have
extname
, when switched to index listing,FilePreview
was throwing an error sayingfile.extname
is undefined. Fixed it by checking file type before accessingextname
.