@CliCommand(value = PREFIX + "ls", help = "List files in the directory")
	public void ls(
			@CliOption(key = { "", "dir" }, mandatory = false, unspecifiedDefaultValue = ".", help = "directory to be listed") final String path,
			@CliOption(key = { RECURSIVE }, mandatory = false, specifiedDefaultValue = TRUE, unspecifiedDefaultValue = FALSE, help = RECURSION_HELP) final boolean recursive) {
		if (recursive) {
			List<String> argv = new ArrayList<String>();
			argv.add("-ls");
			argv.add("-R");
			String[] fileNames = path.split(" ");
			argv.addAll(Arrays.asList(fileNames));
			run(argv.toArray(new String[0]));
		}
		else {
			runCommand("-ls", path);
		}
	}
HDFS shell commands

@author Jarred Li
@author Glenn Renfro
spring-xd-shell/src/main/java/org/springframework/xd/shell/hadoop/FsShellCommands.java