mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
show file size and directory items in filemanager
This commit is contained in:
@@ -28,8 +28,6 @@ local FileManager = InputContainer:extend{
|
||||
}
|
||||
|
||||
function FileManager:init()
|
||||
local exclude_dirs = {"%.sdr$"}
|
||||
|
||||
self.show_parent = self.show_parent or self
|
||||
|
||||
self.banner = VerticalGroup:new{
|
||||
@@ -51,12 +49,6 @@ function FileManager:init()
|
||||
is_popout = false,
|
||||
is_borderless = true,
|
||||
has_close_button = true,
|
||||
dir_filter = function(dirname)
|
||||
for _, pattern in ipairs(exclude_dirs) do
|
||||
if dirname:match(pattern) then return end
|
||||
end
|
||||
return true
|
||||
end,
|
||||
file_filter = function(filename)
|
||||
if DocumentRegistry:getProvider(filename) then
|
||||
return true
|
||||
@@ -164,6 +156,11 @@ function FileManager:onClose()
|
||||
return true
|
||||
end
|
||||
|
||||
function FileManager:onRefresh()
|
||||
self.file_chooser:refreshPath()
|
||||
return true
|
||||
end
|
||||
|
||||
function FileManager:getDefaultDir()
|
||||
if Device:isKindle() then
|
||||
return "/mnt/us/documents"
|
||||
|
||||
Reference in New Issue
Block a user