Does a file that is public through a folder read "Anyone with the link"?
No. It keeps its own setting "Restricted". The sharing controls say that
anyone with the link can open it because {folder} is shared, the listing
shows the badge "Public via folder", and the API names the folder in
publicVia.