file-manager: format files array