>>> from pathlib import Path >>> a = Path("/home/user/public/") >>> b = "/etc/passwd" >>> a/b PosixPath('/etc/passwd')