Closed pazos closed 1 month ago
make dest dir configurable.
I'm not sure if it is a good idea to add it now as it might be quite messy.
Maybe on the future?
Looks sane to me, the nullable type stuff also looks good, but I don't really know enough about the relevant Android stuff without diving deeply into the docs to say anything sensible about that :-)
Does sound sensible to you to hardcode /storage/emulated/0/Android/data/org.koreader.launcher/files
as the path to import files when they cannot be guessed?
I'm not very fond of making it configurable, mostly because it adds a bunch of ugly code but it could also introduce PECKABs.
relevant Android stuff
Nothing new :)
We just repurpose toFile
for content uris that cannot be guessed.
It is already used via FM's + button
-> import
Does sound sensible to you to hardcode
/storage/emulated/0/Android/data/org.koreader.launcher/files
as the path to import files when they cannot be guessed?
There isn't the path in between? Hardcoded to some system-provided constant that resolves to that path.
There isn't the path in between? Hardcoded to some system-provided constant that resolves to that path.
Then hardcoded (if that's the word) sounds fine to me. :+1:
Fix for https://github.com/koreader/koreader/issues/9787
TODO
dest
dir configurable.The new behaviour is:
guess the path if the content seems a local file on a readable path. fallback to copy to
dest
dirLogs:
This change is