core.list - rsanchez-wsu/jfiles GitHub Wiki
Sends a list of files in a directory to the given client.
Package: core
List cmd = new List(clients[findClient(id)]);
cmd.executeCommand();
Parameters:
-
client
- The connected client that you want to send a list of files to.
Private:
JFilesServerThread client
Sends the String "list directory contents" to client.
Executes the listing of directories and sending to client. Calls listCmd().
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.