Servers have collections of roots
, used to abstract away the
location of files. Most methods take a path
argument, which can
take three forms:
- Starting with a
/
: An absolute path, not relative toroot
. - Containing a
/
: Theroot
is up to the first slash, and the remaining is a subpath. - Not containing a
/
: Just aroot
directory.
DiskServer
: A server with a unique ID and a collection of named file root directories.SizelessServer
(DiskServer
): The main top-level server class, able to transfer data and run commands. Does not monitor or limit data usage (hence, "sizeless").SizelessConnectableServer
(SizelessServer
): A server that has a protocol for connecting to it.SizelessLinuxServer
(SizelessConnectableServer
): A standard Linux server, with everything exceptrun_command
implemented.ParamikoServer
(SizelessLinuxServer
): A server connected through ssh, using the Paramiko interface. Theself.session
variable needs to be set in theconnect
method before these functions will work.
LocalServer
(SizelessServer
): A server representing the local machine, using python commands.LoginServer
(ParamikoServer
): A server using a Paramiko ssh connection, with a normal password login.