Answers for "pathlib join file to path"

0

join in pathlib path

# The correct operator to extend a pathlib object is /
from pathlib import Path

dir_path = Path('directory')
subdir_path = dir_path / "subdir_path"
Posted by: Guest on December-14-2021

Python Answers by Framework

Browse Popular Code Answers by Language