service/util.go currently resolves file and folder icons through a long sequence of
switch cases in printWithIconAndPrefix and printIconFiles. This works, but it is
hard to maintain, easy to duplicate incorrectly, and requires editing control flow
whenever a new extension or special filename is added.
Refactor icon resolution into table-driven mappings keyed by normalized extension,
exact filename, and special folder name.
service/util.gocurrently resolves file and folder icons through a long sequence ofswitchcases inprintWithIconAndPrefixandprintIconFiles. This works, but it ishard to maintain, easy to duplicate incorrectly, and requires editing control flow
whenever a new extension or special filename is added.
Refactor icon resolution into table-driven mappings keyed by normalized extension,
exact filename, and special folder name.