ExampleDirectory - ViiSE/papka GitHub Wiki
ExampleDirectory - test directory (papka/example).
public ExampleDirectory(Directory<String> curDir, Separator separator)
Directory<String> curDir - current directory (or another Directory<T> implementation);
Separator separator - OS separator.
Directory<String> dir = new ExampleDirectory(
new CurrentDirectory(new SeparatorUnix()),
new SeparatorUnix());
String dirName = dir.name();
System.out.println(dirName);
Output:
/home/viise/papka/example/
Directory - implementable interface.
Separator - constructor argument.