On this page
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
- BSD/macOS-only: Not available on Linux or Windows.
REPL Inspect
from posix import chflags
help(chflags)
Linked from
- tuts/python3/stdlib_module/posix
- tuts/python3/stdlib_module/posix/abort
- tuts/python3/stdlib_module/posix/access
- tuts/python3/stdlib_module/posix/chdir
- tuts/python3/stdlib_module/posix/chmod
- tuts/python3/stdlib_module/posix/chown
- tuts/python3/stdlib_module/posix/chroot
- tuts/python3/stdlib_module/posix/close
- tuts/python3/stdlib_module/posix/closerange
- tuts/python3/stdlib_module/posix/confstr
- tuts/python3/stdlib_module/posix/cpu_count
- tuts/python3/stdlib_module/posix/ctermid
- tuts/python3/stdlib_module/posix/device_encoding
- tuts/python3/stdlib_module/posix/DirEntry
- tuts/python3/stdlib_module/posix/dup
- tuts/python3/stdlib_module/posix/dup2
- tuts/python3/stdlib_module/posix/error
- tuts/python3/stdlib_module/posix/execv
- tuts/python3/stdlib_module/posix/execve
- tuts/python3/stdlib_module/posix/fchdir
- tuts/python3/stdlib_module/posix/fchmod
- tuts/python3/stdlib_module/posix/fchown
- tuts/python3/stdlib_module/posix/fork
- tuts/python3/stdlib_module/posix/forkpty
- tuts/python3/stdlib_module/posix/fpathconf
- tuts/python3/stdlib_module/posix/fspath
- tuts/python3/stdlib_module/posix/fstat
- tuts/python3/stdlib_module/posix/fstatvfs
- tuts/python3/stdlib_module/posix/fsync
- tuts/python3/stdlib_module/posix/ftruncate
- tuts/python3/stdlib_module/posix/get_blocking
- tuts/python3/stdlib_module/posix/get_inheritable
- tuts/python3/stdlib_module/posix/get_terminal_size
- tuts/python3/stdlib_module/posix/getcwd
- tuts/python3/stdlib_module/posix/getcwdb
- tuts/python3/stdlib_module/posix/getegid
- tuts/python3/stdlib_module/posix/geteuid
- tuts/python3/stdlib_module/posix/stat_result
- tuts/python3/stdlib_module/posix/statvfs_result
- tuts/python3/stdlib_module/posix/terminal_size
- tuts/python3/stdlib_module/posix/times_result
- tuts/python3/stdlib_module/posix/uname_result
- tuts/python3/stdlib_module/posix/waitid_result
Related notes
- tuts/python3/stdlib_module/posix/abort Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/access Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chdir Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chmod Linked here; links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix Linked here; links to this page; shared tags: #stdlib
- tuts/python3/stdlib_module/posix/chown links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/chroot links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/close links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/closerange links to this page; shared tags: #posix, #stdlib
- tuts/python3/stdlib_module/posix/confstr links to this page; shared tags: #posix, #stdlib