System.out.println(baseDir + " is not a directory!");
return;
}
Directory directory = Directory.directoryPath(baseDir).asDirectory();
System.out.println(directory.asTextDirectory().directoryTree());
}
/**
* Shows how the transition between different states can be made and that each state is managed by its own
* behavior class. In this case a not yet opened file is handled by the class ClosedFile.