mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
refactor: move bootstrap code into setupkoenv.lua
add ffi.load patch add kodev prompt command
This commit is contained in:
@@ -34,13 +34,12 @@ function DataStorage:getSettingsDir()
|
||||
end
|
||||
|
||||
local function initDataDir()
|
||||
local data_dir = DataStorage:getDataDir()
|
||||
local sub_data_dirs = {
|
||||
"cache", "clipboard", "data", "history",
|
||||
"ota", "screenshots", "settings",
|
||||
}
|
||||
for _, dir in ipairs(sub_data_dirs) do
|
||||
local sub_data_dir = data_dir .. "/" .. dir
|
||||
local sub_data_dir = DataStorage:getDataDir() .. "/" .. dir
|
||||
if lfs.attributes(sub_data_dir, "mode") ~= "directory" then
|
||||
lfs.mkdir(sub_data_dir)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user