FoldersFileNameWin - ViiSE/papka GitHub Wiki
FoldersFileNameWin - implementation which return list of folders name from full filename from Windows.
public FoldersFileNameWin(Separator separator)
Separator - separator of full filename.
Separator separator = new SeparatorWin();
FoldersFile<String, String> foldersFile = new FoldersFileNameWin(separator);
String filename = "C:\\music\\classic\\chopin.mp3";
List<String> foldersName = foldersFile.folders(filename);
foldersName.forEach(System.out::println);
Output:
/
C:
music
classic
FoldersFile - implementable interface. Separator - constructor value.