Resolve file structure