On this page
  1. posixpath.join
  2. Import
  3. Signature & Overview
  4. Usage
  5. Gotchas
  6. REPL Inspect

posixpath.join

Prev: posixpath.ismount | Up: posixpath | Next: posixpath.lexists
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.join
Tags: #public #python3 #stdlib #posixpath


Import

import posixpath
from posixpath import join

Signature & Overview

posixpath.join(a, *p)

Join two or more pathname components, inserting '/' as needed.

Usage

import posixpath

assert posixpath.join('/var', 'log', 'app.log') == '/var/log/app.log'

Gotchas

REPL Inspect

from posixpath import join
help(join)

Linked from

Related notes