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

Unified · Split

TOOLS/lua/autoload.lua+3−0
@@ -25,6 +25,9 @@ function find_and_add_entries() · 24 unmodified lines
2525 return
2626 end
2727 local files = mputils.readdir(dir, "files")
28+ if files == nil then
29+ return
30+ end
2831 table.sort(files)
2932 if dir == "." then
3033 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