ExampleDirectory - ViiSE/papka GitHub Wiki

ExampleDirectory

ExampleDirectory - test directory (papka/example).

Constructors

public ExampleDirectory(Directory<String> curDir, Separator separator)


Directory<String> curDir - current directory (or another Directory<T> implementation);
Separator separator - OS separator.

Example

Directory<String> dir = new ExampleDirectory(
        new CurrentDirectory(new SeparatorUnix()),
        new SeparatorUnix());

String dirName = dir.name();
System.out.println(dirName);
Output:
/home/viise/papka/example/

Links

Directory - implementable interface.

Separator - constructor argument.

⚠️ **GitHub.com Fallback** ⚠️