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.2.0.tar.gz (34.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_groups-0.2.0-py3-none-any.whl (13.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for file_groups-0.2.0.tar.gz
Algorithm Hash digest
SHA256 187ecb27732b5aa5d65a9bb571907c7dc4d952c27f22a63cca0f984667c0c0fd
MD5 fdda0afd715a95a1ca82686287b5a341
BLAKE2b-256 516998df37e9171ee446a38c0a28471a461241f2fa0b05d44ec23d3ae004848c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for file_groups-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b9ccf5daf74063a384709552515de5128999e92d3e363f92b4ff2a360bc684d1
MD5 0e884639bb306dc30af043c0b7ca4bd8
BLAKE2b-256 e6d829da6caa6e5a2308bdcdaf86fc0d6c4301e971d03ba7e9f7de98ab7617be

See more details on using hashes here.

Supported by

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