Skip to content

Make makedirs_from_filename accept Path-type arg

Loic Huder requested to merge path-utils into main

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'

Merge request reports