Skip to main content

An application to remove file and folder in a given directory for a given treshold

Project description

Use case

https://img.shields.io/travis/Hatoris/RemoveMedia.svg

This script is attented to be use on server, as cli, to remove file older than a given differential. More specificly, to remove media on server with small capacity (FreeNAS/FreeBSD).

For this reason, scrpt can refresh plex instance and send you notification via pushbullet.

Instalation

pip install RemoveMedia
git clone

Basic usage

You have two choice to use this application :

  1. Generated a config file
    1. By generating a default one and edit the config file by yourself
    2. Follow cli instruction to generate the config file
  2. Pass your paremters directly

Generated config file

1. Generating default

Open your shell and run the following command

python RemoveMedia generate MyFirstConfig.ini -default=True

This command will generate a empty config file inside the package :

~/RemoveMedia/configuration/config

The generating default config file will look like this

Note

[folder] threshold = path = threshold_type =

[plex] ip = token = link = http://${plex:IP}:32400/library/sections/all/refresh?X-Plex-Token=${plex:token}

[pushbullet] api_key =

[log] log_path = log_filename =

Warning

Remove an used parameters to prevent error

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for RemoveMedia, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size RemoveMedia-0.0.3-py3-none-any.whl (11.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size RemoveMedia-0.0.3.tar.gz (8.1 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page