If i have a String that contains a path like
"D:\\Folder\\Folder2\\file.txt"
, how can i remove the file and have only