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

posixpath.lexists

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


Import

import posixpath
from posixpath import lexists

Signature & Overview

posixpath.lexists(path)

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

Usage

import posixpath

assert posixpath.lexists('.') is True

Gotchas

REPL Inspect

from posixpath import lexists
help(lexists)

Linked from

Related notes