Skip to content
Mahmoud Ben Hassine edited this page Nov 8, 2015 · 4 revisions

ls

Synopsis

Create a UnixStream with file names of a given directory.

Example

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

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