Skip to content
Mahmoud Ben Hassine edited this page Oct 9, 2015 · 4 revisions

ls

Synopsis

Create an XStream with file names of a given directory.

Example

// Create an XStream with file names of the current directory
XStream<String> filesInCurrentDirectory = XStream.ls();

// Create an XStream with file names of the "/home/benas" directory
XStream<String> filesInHomeDirectory = XStream.ls("/home/benas");
Clone this wiki locally