I have this path:

C:\SomeFolder\Folder1\file.txt

How do I get the name "Folder1"?
There are no GetFolderName function, only directory name