rm(path) function - remove files and directories


Keywords
rm, delete, python
License
Unlicense
Install
pip install rm==1.0.0

Documentation

Installation

$ [sudo] pip install rm

Features

  • removes dirs and files
  • no exception - skip if path not exists

Examples

>>> import rm

>>> rm.rm("path/to/file")  # rm file
>>> rm.rm("path/to/dir")  # rm dir
>>> rm.rm(["path/to/dir","path/to/file"])  # rm multiple paths
>>> rm.rm("not-existing") # no exception

readme42.com