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

Uploaded Source

Built Distribution

file_groups-0.2.1-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for file_groups-0.2.1.tar.gz
Algorithm Hash digest
SHA256 acc7bd66a79be3492312fdbd7d22ab764280e3c2fb5f4aeff7bb15c6020122f2
MD5 a2b80d51db0d12f0d7abaa34028001a6
BLAKE2b-256 a8e2df6a7c7bdd056a47bb0a35e2cf005aedb32d2112ec30c7d01f45834367ee

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for file_groups-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8b8a97b889bdd9265310e83a43b788d1acb6b7196d30a33c5c4ac529d3fc42d1
MD5 43cc86ffddf56f0d781ea408fbcd005e
BLAKE2b-256 a62f12e88795214bd218e65d3a0c9f3ae98a251d858895753334abbad2cbea2f

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