Giter Site home page Giter Site logo

fcl's Introduction

fcl

Actions Status

File cleaner (fcl) is app for cleanup files from host folder (and subfolders) by modification time and/or file size.

Setup

You can download releases here.

Install commands example for version 0.0.1 on linux OS:

wget https://github.com/dlampsi/fcl/releases/download/0.0.1/fcl_0.0.1_linux_amd64.zip
unzip fcl_0.0.1_linux_amd64.zip
mv fcl_0.0.1_linux_amd64 /usr/local/bin/fcl
chmod +x /usr/local/bin/fcl

Usage

All usage commands available on help flag:

fcl -h

Some command examples:

# Remove all files in CURRENT dir and subdirs older than 1 day
fcl -mtime 1

# List (not delete) all files in current dir and subdirs older than 1 day
fcl -mtime 1 -check

# Remove all files in specific folder dir and subdirs older than 1 day
fcl -path /dummy/path -mtime 1

# Remove all files in specific folder dir and subdirs older than 1 day with exception dir and file
fcl -path /dummy/path -mtime 1 -skip /dummy/path/subdir1,/dummy/path/file.log

# Remove all files in specific folder dir and subdirs older than 1 day and delete empty directories after that
fcl -path /dummy/path -mtime 1 -cleanup-empty-dirs

# Delete files bigger than 10MB
fcl -path /dummy/path -size 10

# Files bigger than 25,5MB
fcl -path /dummy/path -size 25.5

# Delete files bigger than 10MB AND older than 5 days
fcl -path /dummy/path -size 10 -mtime 5

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.