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

posixpath.exists

Prev: posixpath.dirname | Up: posixpath | Next: posixpath.expanduser
Rel: posixpath.abspath, posixpath.basename, posixpath.commonpath, posixpath.commonprefix
Ref: docs.python.org — posixpath.exists
Tags: #public #python3 #stdlib #posixpath


Import

import posixpath
from posixpath import exists

Signature & Overview

posixpath.exists(path)

Test whether a path exists. Returns False for broken symbolic links

Usage

import posixpath

assert posixpath.exists('.') is True

Gotchas

REPL Inspect

from posixpath import exists
help(exists)

Linked from

Related notes