List Function - rsanchez-wsu/jfiles GitHub Wiki

The list function currently only has a simple implementation that prints directory contents of the working directory of the (JFilesClient?JFilesServer?List class?). This is done by getting the working directory through System.getProperty("user.dir") and then passing it to a directory stream to iterate through each file. A string name of each file is sent one by one to the client.

For future use the List function should be altered to list the contents of a directory supplied as a parameter(instead of System.getProperty("user.dir")) to the executeCommand() method of the List class. This will be crucial for the GUI to properly display the contents of specified directories.