NameFoldersPath - ViiSE/papka GitHub Wiki
NameFoldersPath - implementation for folder path from folder names.
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.
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
Name - implementable interface.