fix: oil-ssh assume target machine's locales
This commit is contained in:
parent
64d2f305d3
commit
c72bcb45b2
1 changed files with 1 additions and 1 deletions
|
|
@ -120,7 +120,7 @@ function SSHFS:list_dir(url, path, callback)
|
||||||
if path ~= "" then
|
if path ~= "" then
|
||||||
path_postfix = string.format(" '%s'", path)
|
path_postfix = string.format(" '%s'", path)
|
||||||
end
|
end
|
||||||
self.conn:run("ls -fl" .. path_postfix, function(err, lines)
|
self.conn:run("LANG=C ls -fl" .. path_postfix, function(err, lines)
|
||||||
if err then
|
if err then
|
||||||
if err:match("No such file or directory%s*$") then
|
if err:match("No such file or directory%s*$") then
|
||||||
-- If the directory doesn't exist, treat the list as a success. We will be able to traverse
|
-- If the directory doesn't exist, treat the list as a success. We will be able to traverse
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue