import * as pathLib from 'path'

Get the filename, directory, extension from a path string in Python | note.nkmk.me