core.list - rsanchez-wsu/jfiles GitHub Wiki

Sends a list of files in a directory to the given client.

Package: core

Example Usage

List cmd = new List(clients[findClient(id)]);
cmd.executeCommand();

Constructors

+ List(JFilesServerThread client)

Parameters:

  • client - The connected client that you want to send a list of files to.

Member Variables

Private:

  • JFilesServerThread client

Functions

+ void getHelp()

Sends the String "list directory contents" to client.

+ void executeCommand()

Executes the listing of directories and sending to client. Calls listCmd().

- void listCmd(String dir)

Lists all the files in dir and sends the full path to the client. An example would be:

/home/gnome/jfiles/test.txt

Can throw an IOException. Exception is caught within the method.

Related

⚠️ **GitHub.com Fallback** ⚠️