FileManager: safe initial path (#11774)
We do not like trailing slash in the path (except root). Closes #11772.
This commit is contained in:
1 parent
05168b22f5
commit
db63db11b2
2 files changed
+2
-3
No files matched your search
@@ -558,7 +558,6 @@ function ReaderUI:showFileManager(file)
|
||||
local last_dir, last_file
|
||||
if file then
|
||||
last_dir = util.splitFilePathName(file)
|
||||
last_dir = last_dir:match("(.*)/")
|
||||
last_file = file
|
||||
else
|
||||
last_dir, last_file = self:getLastDirFile(true)
|
||||
|
||||
Reference in new issue
Block a user