https://note.nkmk.me/python-pathlib-name-suffix-parent/

p = Path("./hoge")
p.name