Page 1 of 1

LuaFileSystem

Posted: Thu Nov 19, 2015 8:44 am
by chazjn
Hello,

Could you please provide a complied version of the LuaFileSystem library?
https://github.com/keplerproject/luafilesystem" rel="nofollow

Many thanks,

Chaz

Re: LuaFileSystem

Posted: Tue Nov 24, 2015 7:15 am
by FTP
OK, you can download the compiled version of the LuaFileSystem library here:

https://github.com/luapower/lfs" rel="nofollow

Re: LuaFileSystem

Posted: Thu Aug 17, 2023 4:51 pm
by DomDis
FTP wrote: Tue Nov 24, 2015 7:15 am OK, you can download the compiled version of the LuaFileSystem library here:

https://github.com/luapower/lfs" rel="nofollow
I too am interested in LFS so i can run the following script how do I add this to WFTP?


require "lfs"

function dirtree(dir)
assert(dir and dir ~= "", "directory parameter is missing or empty")
if string.sub(dir, -1) == "/" then
dir=string.sub(dir, 1, -2)
end

local function yieldtree(dir)
for entry in lfs.dir(dir) do
if entry ~= "." and entry ~= ".." then
entry=dir.."/"..entry
local attr=lfs.attributes(entry)
coroutine.yield(entry,attr)
if attr.mode == "directory" then
yieldtree(entry)
end
end
end
end

return coroutine.wrap(function() yieldtree(dir) end)
end

-- example
for filename, attr in dirtree("/FTP/FTP-Repo/") do
print(attr.mode, filename)
end

Re: LuaFileSystem

Posted: Fri Aug 18, 2023 6:03 pm
by DomDis
FTP wrote: Tue Nov 24, 2015 7:15 am OK, you can download the compiled version of the LuaFileSystem library here:

https://github.com/luapower/lfs" rel="nofollow
Sorry to post on such an old topic BUT I tried running a script that need LFS and its not found. I see the comment on Here; are the executives but there is no mention on how to install

any assistance is appreciated

Re: LuaFileSystem

Posted: Sun Aug 20, 2023 3:18 am
by FTP
Already answered you in this thread: viewtopic.php?p=8330