1
0
mirror of https://github.com/kepler155c/opus synced 2025-11-11 13:03:04 +00:00

extended file listing

This commit is contained in:
kepler155c@gmail.com
2017-08-05 04:17:06 -04:00
parent a1660fd073
commit c21afd2875
8 changed files with 34 additions and 47 deletions

View File

@@ -29,7 +29,7 @@ local function remoteCommand(node, msg)
error('netfs: Connection failed', 2)
end
local methods = { 'delete', 'exists', 'getFreeSpace', 'makeDir' }
local methods = { 'delete', 'exists', 'getFreeSpace', 'makeDir', 'list', 'listEx' }
local function resolveDir(dir, node)
dir = dir:gsub(node.mountPoint, '', 1)
@@ -125,16 +125,6 @@ function netfs.find(node, spec)
return list
end
function netfs.list(node, dir, full)
dir = resolveDir(dir, node)
local r = remoteCommand(node, {
fn = 'list',
args = { dir, full },
})
return r
end
function netfs.move(node, s, t)
s = resolveDir(s, node)
t = resolveDir(t, node)