Path to a file without basename

前端 未结 4 1065
轮回少年
轮回少年 2021-02-03 16:24

How can I get the path of a file without the file basename ?

Something like /a/path/to/my/file.txt --> /a/path/to/my/

Tried with .split

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