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.0.2.tar.gz (11.1 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.0.2-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for file_groups-0.0.2.tar.gz
Algorithm Hash digest
SHA256 bebc22e7da6841be9a1e6e7875edadd1d76ed83ca7ce3cd78b3913ce36309672
MD5 76d01c7c7da3b81d570ff641c89523da
BLAKE2b-256 3e08f5eb1a50a8f89a9d7a71144075af4e807b49b2716b5c9d70f1b23f86fa9d

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for file_groups-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d85ecf46613b82c470a47ddbd53769d66ccfd469131928ec4835ecc4ef62a3f
MD5 2c22f94ee9befa5fa5359bb2cb1cbf11
BLAKE2b-256 720c59c6b7c1112a537c546ba833c260b3758796189337005bc47249e714c2f5

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