Skip to main content

Remove files/folders. Not drop-in replacement for rm, though

Project description

Remove

  • removes files
  • prints out filepath
  • logs filepath to syslog
  • optionally, logs to sqlite database

Motivation

  • being able to clean up folders deep inside tree: remove **/node_nodules
  • we could do this via normal rm -rf **/node_nodules, however we would not see what entries being removed
  • rm command has -v option to display removed entry. And we could use rm -frv **/node_modules. But rm would log each file in this case. For a large node_modules - the output is overwhelming. I just need to see which node_modules being removed and keep the output log readable.
  • we could use find and xargs - but we will end up with rather longer command for a trivial task

Example

pip install ngm-remove
cd projects

remove **/node_nodules

journalctl -t remove

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

ngm_remove-0.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

ngm_remove-0.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ngm_remove-0.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for ngm_remove-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4a0d4c02a2b36024f6ad731c978e1662250cbedec2d19451470d0717676a6682
MD5 6af0a23df561cd2ac80928f7feeb1d34
BLAKE2b-256 477083d5bd6ec917c617a8db56951523dce8d357f8b530bbe6251e815e15afdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ngm_remove-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 2.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.10

File hashes

Hashes for ngm_remove-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 16eb0a0f2c8148503fb000d38879088e3ac238d28ff6c45155520eeaef03bdde
MD5 08c49a9a95be17ccd8bd79b72602dc48
BLAKE2b-256 3f38087bae3bd525cc2d5593b763a76ffefe7f0d13db4b2811aa118b5d3e235e

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