when dealing with loads of URLs for PDFs, but the file names are in headers and possibly colliding, how to preserve the metadata and download them all
I'm honestly shocked that it even compiled first time, and remotely did as expected, much less _exactly_ as expected. Prompt to Claude.ai using 3.7 Sonnet: ``` this is awesome. Though on line 303, the os.Rename fails because /tmp is on a different device partition than the downloads/ directory. This should instead Create and write a new file and remove the old one. ``` Signed-off-by: Vincent Batts <vbatts@hashbangbash.com> |
||
---|---|---|
.gitignore | ||
go.mod | ||
LICENSE | ||
main.go | ||
README.md |
fetch-content
when dealing with loads of URLs for PDFs, but the file names are in headers and possibly colliding, how to preserve the metadata and download them all