History

TOOLS/lua/autoload: fix behavior with network URLs

readdir() fails if the directory is an URL, so just exit instead of letting the Lua script fail.

wm4 committed 11 years ago

Commit 44c07701 parent d5f11701 file · +3 −0Browse files

Showing the changes to TOOLS/lua/autoload.lua (1 of 1 file). Show all

Unified · Split

TOOLS/lua/autoload.lua+3−0
@@ -25,6 +25,9 @@ function find_and_add_entries() · 24 unmodified lines
25 return25 return
26 end26 end
27 local files = mputils.readdir(dir, "files")27 local files = mputils.readdir(dir, "files")
28 if files == nil then
29 return
30 end
28 table.sort(files)31 table.sort(files)
29 if dir == "." then32 if dir == "." then
30 dir = ""33 dir = ""

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t