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