Api/netfolder.getfolder()

From Minux Wiki
Revision as of 22:44, 24 September 2024 by Shorun (talk | contribs) (Created page with "this api is used by netfolder clients to download an entire folder and all it's subdirectories can only clone paths from the server to the client, so the path is the same on both sides. '''usage:''' netfolder.getfolder(server, serverpath) '''output:''' does a recursive fs.list() on "serverpath" on the fileserver, processes the answer for download and then uses getfile to download the found files. in effect this makes a copy of "serverpath" t...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

this api is used by netfolder clients to download an entire folder and all it's subdirectories

can only clone paths from the server to the client, so the path is the same on both sides.


usage:

netfolder.getfolder(server, serverpath)


output:

does a recursive fs.list() on "serverpath" on the fileserver, processes the answer for download and then uses getfile to download the found files.

in effect this makes a copy of "serverpath" to your local computer, all pathnames are identical for now. it's a first version.