file base name and extension python

38

from pathlib import Path

Path('/root/dir/sub/file.ext').stem

Comments

Submit
0 Comments