Skip to main content

Recpermissions PyPI - Downloads Tests

Recpermissions is a Python script to change Linux permissions and ownership in one step. It can delete empty directories when necessary.

This script doesn't work on Windows.

Usage

recpermissions

Recursively changes the ownership and permissions for all files and directories within a given absolute path.

recpermissions --user <user> --group <group> --files <PERM> --directories <PERM> <absolute_path>

Arguments:

  • --user <user>: The new owner for the files and directories.
  • --group <group>: The new group for the files and directories.
  • --files <PERM>: The octal permissions to set for all files (e.g., 644).
  • --directories <PERM>: The octal permissions to set for all directories (e.g., 755).
  • <absolute_path>: The absolute path to the directory to process.

remove-empty-dirs

Recursively finds and deletes empty directories within a given path.

remove-empty-dirs [--pretend] <absolute_path>

Arguments:

  • --pretend: If used, the script will only list the empty directories that would be deleted, without actually deleting them.
  • <absolute_path>: The absolute path to the directory to scan for empty subdirectories.

Release files for recpermissions 2.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for recpermissions 2.0.0
File Size Uploaded
recpermissions-2.0.0.tar.gz 24.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for recpermissions 2.0.0
File Interpreter ABI Platform
recpermissions-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size:57.0 kB

Release files / recpermissions-2.0.0.tar.gz

Download URL recpermissions-2.0.0.tar.gz
Size 24.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a2b7767cab6273952d0d6b873fdb4c0a9d71242d5b6940952b6286f0ebdbfa94
BLAKE2b-256 checksum
How to use checksums
6d3d7f6e39d42e2ad8e2c42832399827fd620e4b9f7dbeab8fea692cf9d6cf81
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Linux/6.19.3-gentoo

Release files / recpermissions-2.0.0-py3-none-any.whl

Download URL recpermissions-2.0.0-py3-none-any.whl
Size 32.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aff090996c4b61e78b086025fe01bbea9ae094eb9896b557f05e3197634c7c8f
BLAKE2b-256 checksum
How to use checksums
8f5fb993d7863a42c7309514cda7dbc673648e15731dc6ca717226413643f533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.13.12 Linux/6.19.3-gentoo

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.10.0

1 release file

1.9.0

1 release file

1.8.0

1 release file

1.7.0

1 release file

1.6.0

1 release file

1.5.0

1 release file

1.4.0

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page