mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
FileManager: rename hasSidecarDir to hasSidecarFile
Fixes #2550
Cf. b502047635
This commit is contained in:
committed by
Qingping Hou
parent
1e095afb15
commit
fed22b509d
@@ -398,7 +398,7 @@ function FileManager:pasteHere(file)
|
||||
file or file:match("(.*/)")
|
||||
if self.cutfile then
|
||||
-- if we move a file, also move its sidecar directory
|
||||
if DocSettings:hasSidecarDir(orig) then
|
||||
if DocSettings:hasSidecarFile(orig) then
|
||||
self:moveFile(DocSettings:getSidecarDir(orig), dest) -- dest is always a directory
|
||||
end
|
||||
self:moveFile(orig, dest)
|
||||
|
||||
Reference in New Issue
Block a user