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

posix.chflags

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


Import

import posix
from posix import chflags

Signature & Overview

posix.chflags(path, flags, follow_symlinks=True)

Set file flags.

Usage

import os

# BSD/macOS-only syscall to set file flags (e.g., UF_HIDDEN)
assert hasattr(os, 'chflags') or True

Gotchas

REPL Inspect

from posix import chflags
help(chflags)

Linked from

Related notes