>>> p = os.path.join(os.getcwd(), 'foo.txt')
>>> p
'/Users/csaftoiu/tmp/foo.txt'
>>> os.path.dirname(p)
'/Users/csaftoiu/tmp'
>>> os.path.basename(p)
'foo.txt'
>>> os.path.split(os.getcwd())
('/Users/csaftoiu/tmp', 'foo.txt')
>>> os.path.splitext(os.path.basename(p))
('foo', '.txt')
# The correct operator to extend a pathlib object is /
from pathlib import Path
dir_path = Path('directory')
subdir_path = dir_path / "subdir_path"
env_path = Path(__file__).parent / ".env"
import os
image_dir = os.path.join(folder_dir, image_name)