Api/netfolder

From Minux Wiki
Revision as of 22:45, 24 September 2024 by Shorun (talk | contribs)
Jump to navigation Jump to search

these api functions can be used to communicate with a file server, client side only for now.

warning: Netfolder WILL do what you ask of it, even if this means overwriting or destroying your data. careless use can result in damage.


netfolder.list()

netfolder.delete()

netfolder.getfile()

netfolder.putfile()

netfolder.getfolder(server, serverpath)

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.


netfolder.putfolder(server, serverpath)

does a recursive fs.list() on "serverpath" on your local computer and then "putfile" the files found on the server, same paths as on the computer.

makes a copy of "serverpath" from the server to your computer as it finds it, all pathnames are identical for now, it's a first version.