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.3.tar.gz (3.2 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.3-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ngm_remove-0.0.3.tar.gz
Algorithm Hash digest
SHA256 952484c3c38356e10ce2b932a94d731736bb9226e84308d7241db274da8eb4f5
MD5 d875c782f317630b4bff87caacd7247f
BLAKE2b-256 5131287f00e26004a72353ea617e169697fbe143f70050dba33ee4112504468b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ngm_remove-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ab3df30a72cd796c660f81d960c336a056c0c1c0bdd2d93208bcbab8c2e762bb
MD5 2aee664b5b390e6d0dc3c407d1691c82
BLAKE2b-256 6ad578a8207c9d8e108cd960a0e5c184df7fdecef2818aee90e72b9c74288703

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