feat: implement basic directory browser window
refactor: make fileaccess state from union
refactor: do not use dynamic allocation where not needed
feat: add directory list
feat: add local file access functions