mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
NewsDownloader: Remove NewsDownloader files from history (#3424)
This commit is contained in:
@@ -5,6 +5,8 @@ local lfs = require("libs/libkoreader-lfs")
|
||||
local DataStorage = {}
|
||||
|
||||
local data_dir
|
||||
local full_data_dir
|
||||
|
||||
function DataStorage:getDataDir()
|
||||
if data_dir then return data_dir end
|
||||
|
||||
@@ -33,6 +35,19 @@ function DataStorage:getSettingsDir()
|
||||
return self:getDataDir() .. "/settings"
|
||||
end
|
||||
|
||||
|
||||
function DataStorage:getFullDataDir()
|
||||
if full_data_dir then return full_data_dir end
|
||||
|
||||
if string.sub(self:getDataDir(), 1, 1) == "/" then
|
||||
full_data_dir = self:getDataDir()
|
||||
elseif self:getDataDir() == "." then
|
||||
full_data_dir = lfs.currentdir()
|
||||
end
|
||||
|
||||
return full_data_dir
|
||||
end
|
||||
|
||||
local function initDataDir()
|
||||
local sub_data_dirs = {
|
||||
"cache", "clipboard",
|
||||
|
||||
Reference in New Issue
Block a user