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.7.0.tar.gz (43.0 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.7.0-py3-none-any.whl (19.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: file_groups-0.7.0.tar.gz
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for file_groups-0.7.0.tar.gz
Algorithm Hash digest
SHA256 4db52d48041ce4348e10c123ba9d117490b184c7c4cc703d6330227d44a4519b
MD5 75269da3850c1b4b24c754bc8eb86913
BLAKE2b-256 1cb87480de7daaf1ab1c807bc24f80df71729878cf9b986660e7a07394093e3a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: file_groups-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 19.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for file_groups-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d05175fc4df9863b0c8a0ce089dc9a863ccc77393f99bc425295b52812ed5c7d
MD5 80156e095ac5faa58440162ac75c8116
BLAKE2b-256 3373fa672a84ea3f1cc9980a9719072c28d650ff33a3b7e7402fd4a841bd518d

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