Skip to main content

Group files into 'protect' and 'work_on' and provide operations for safe delete/move and symlink handling.

Project description

Library for grouping files into sets of ‘work-on’ and ‘protect’ based on arbitrarily nested directories.

Symlink safe delete and rename/move of files. This library can be used for bulk fs cleanup programs.

You probably want to use the FileHandler or FileHandlerCompare class which provides the file operations. The FileGroups class is quite lowlevel, and just does the split of file into must_protect and may_work_on sets.

Any use of these scripts are completely your own responsibility. The author cannot be made responsible for any loss of data resulting from your use of these scripts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

file_groups-0.1.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

file_groups-0.1.0-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file file_groups-0.1.0.tar.gz.

File metadata

  • Download URL: file_groups-0.1.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for file_groups-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6cf9753551e57dc4a7116211f27716ba3389a7412749206624f64074232e47de
MD5 8b7f5a6ab8f656f0e25e2a4f8017e7f2
BLAKE2b-256 2d2c1dfd8628bc097fd759d2a182a3ff0e973d518abde60105ae409ff215fadd

See more details on using hashes here.

File details

Details for the file file_groups-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: file_groups-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for file_groups-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3a382b8a53d9759d4ab5f59ac923024cde9443b2363e47cf94ca3a3a5e40013f
MD5 8796fedb4d688927f1cfae842b806a66
BLAKE2b-256 08a3fbc41fbb0511e1e7a2b72b9888faa4e848b92bafbda081827681515e2811

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page