-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there an option to not create a SDR folder for each folder opened ? #4831
Comments
These .sdr directories contain some metadata.epub.lua with the settings/position/highlights for opened books. Some things in the code might depend on them. It's also supposed to help if you move books around, or switch removable storage. It seems you could get back that original behaviour by commenting one line in the code: --- a/frontend/docsettings.lua
+++ b/frontend/docsettings.lua
@@ -85,7 +85,7 @@ end
function DocSettings:ensureSidecar(sidecar)
if lfs.attributes(sidecar, "mode") ~= "directory" then
- lfs.mkdir(sidecar)
+ -- lfs.mkdir(sidecar)
end
end
Dunno what may break. |
Ça fonctionne, merci à toi. |
To have the above hack working on Android, create a local orig_path = package.path
package.path = "frontend/?.lua;" .. package.path
local DocSettings = require("docsettings")
DocSettings.ensureSidecar = function() end
package.path = orig_path Still some caveats: books won't be marked as opened in File browser. |
I think that it is better to reopen this issue. These directory seem polluting the directory where PDFs are stored which does not seem to be satisfactory. |
This patch does not seem to work. |
Hi !
I'm using KOReader on a PocketBook 740/InkPad 3.
I would rather like that KOReader will not create these folders, is it possible ?
Thank you.
The text was updated successfully, but these errors were encountered: