I have many file links with the format: /aaa/bbb/ccc/file1.txt /aaa/ffffd/eee/file2.txt I need to get the path of each file: /aaa/bbb/ccc/ /aaa/ffffd/eee/ I think it is possible to