Determine the directory entry type of a filesystem node, being one of "directory", "regular", "symlink", or "unknown".