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

posix.access

Prev: posix.abort | Up: posix | Next: posix.chdir
Rel: posix.abort, posix.chdir, posix.chflags, posix.chmod
Ref: docs.python.org — posix.access
Tags: #public #python3 #stdlib #posix


Import

import posix
from posix import access

Signature & Overview

posix.access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)

Use the real uid/gid to test for access to a path.

Usage

import os

assert os.access('.', os.R_OK) is True

Gotchas

REPL Inspect

from posix import access
help(access)

Linked from

Related notes