NameFoldersPath - ViiSE/papka GitHub Wiki

NameFoldersPath

NameFoldersPath - implementation for folder path from folder names.

Constructors

public NameFoldersPath(List<String> foldersName, Separator separator)

List<String> foldersName - list of folders name;
Separator separator - separator of folder path (default - SeparatorUnix).
public NameFoldersPath(List<String> foldersName)

List<String> foldersName - list of folders name.

Example

List<String> foldersName = new ArrayList<>();
foldersName.add("/");
foldersName.add("files");
foldersName.add("music");
foldersName.add("opus");

Name fPath = new NameFoldersPath(foldersName);

System.out.println("Full folder name: " + fPath.fullName());
System.out.println("Short folder name: " + fPath.shortName());
Output:

Full folder name: /files/music/opus/
Short folder name: opus

Links

Name - implementable interface.

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