Open Cyrix126 opened 1 year ago
@Cyrix126 thank you very much for the proof of concept, this should absolutely be doable. I just need to figure out the best way to integrate it. Thanks.
@Cyrix126 thank you very much for the proof of concept, this should absolutely be doable. I just need to figure out the best way to integrate it. Thanks.
Hi, Maybe by trying an Url.parse and if it you got an Err as a result, read the file locally?
Just a proof of concept.
At the moment of fetching the url, it checks if it contains "http" in the url. If it doesn't, it tries to load it as a file.
It's very simple but too rudimentary, a lot of things could go wrong (for example if a file name contain the word http), but it works for me with this small change.