Really helpful - thanks to you both. Ended up needing similar approach for dynamically updating certain course files - the tip here definitely reduced time to get it going.
Use case on this end required updating an existing file based on new/temporary JSON data. Was able to use
to store the new data, and after confirming update of the old/existing file, deleted newfile with
Hope sharing this is helpful for others with similar requirements.