Export files from Roam
Closed this issue · 0 comments
rbrcsk commented
I want to save a local copy of all files I upload to Roam. After #1 is finished
- Go through all markdown files and collect URLs
- For each URL:
- Create a unique ID that does not change between runs (ie hash it)
- Replace the URL with the new reference
images/{id}.{ext}
- Add to a list of URLs
- For each URL in the download list
- Check if the file exists locally and skip if it does
- Download the file if it doesn't
Optional:
- Do this replacement in the json file too
- Generate a files.json file that documents the original vs replaced URLs, and the files it occured in.