Make makedirs_from_filename accept Path-type arg
os.path.dirname
works with Path
so it is just a type annotation change
>>> from pathlib import Path
>>> p = Path('/home/huder')
>>> import os
>>> os.path.dirname(p)
'/home'
os.path.dirname
works with Path
so it is just a type annotation change
>>> from pathlib import Path
>>> p = Path('/home/huder')
>>> import os
>>> os.path.dirname(p)
'/home'