Function toFileOperationResult