Api/netfolder: Difference between revisions

From Minux Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 12: Line 12:
'''''[[Api/netfolder.putfile()|netfolder.putfile]]()'''''
'''''[[Api/netfolder.putfile()|netfolder.putfile]]()'''''


'''''netfolder.getfolder(server, serverpath)'''''
'''''[[Api/netfolder.getfolder()|netfolder.getfolder]]()'''''
 
'''''[[Api/netfolder.putfolder()|netfolder.putfolder]]()'''''
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.

Revision as of 22:47, 24 September 2024

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() netfolder.putfolder()