fix: get corret errno on file copy
refactor: make fileaccess state from union
feat: add copy and move operations for local filesystem