How do I get a file's parent directory?

前端 未结 4 1158
时光取名叫无心
时光取名叫无心 2021-01-11 17:40

Given a path to a file, c:\\xxx\\abc\\xyz\\fileName.jpg, how can I get the file\'s parent folder? In this example, I\'m looking for xyz. The number

4条回答
提交回复
热议问题