Updating File::listFiles and File::listFolders to handle DT_UNKNOWN and fallback to using a stat() call to determine the file type.