fold-files-to-put-files: add result as the return val