FoldersFileNameWin - ViiSE/papka GitHub Wiki

FoldersFileNameWin

FoldersFileNameWin - implementation which return list of folders name from full filename from Windows.

Constructors

public FoldersFileNameWin(Separator separator)

Separator - separator of full filename.

Example

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

Links

FoldersFile - implementable interface. Separator - constructor value.

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