CurrentDirectory - ViiSE/papka GitHub Wiki

CurrentDirectory

CurrentDirectory - directory where the program is being executed.

Constructors

public CurrentDirectory(Separator separator)


Separator separator - OS separator.

Example

Directory<String> dir = new CurrentDirectory(new SeparatorUnix());
String dirName = dir.name();
System.out.println(dirName);
Output:
/home/viise/papka/

Links

Directory - implementable interface.

Separator - constructor argument.

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