Coder Social home page Coder Social logo

amirtahamim / oldfilegone Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 9 KB

This is a Python script that deletes files in a specified directory that are older than a certain number of hours. And Delete Them

License: MIT License

Python 100.00%
atuomation delete-files python python-script python3 wipe-files

oldfilegone's Introduction

OldFileGone

This is a Python script that deletes files in a specified directory that are older than a certain number of hours.

Installation

To use OldFileGone with Loop, simply download the oldfilegone.py file and save it to a directory of your choice. Make sure you have Python 3 installed on your system.

Usage

To use this script, follow the steps below:

  1. Open the OldFileGone.py file in a text editor.
  2. Modify the dir_path, loop_sleep_time and hour variables in the main() function to specify the directory path and the number of hours that files older than which should be deleted, respectively.
  3. Save the changes to the OldFileGone.py file.
  4. Open a command prompt or terminal and navigate to the directory containing the OldFileGone.py file.
  5. Run the script by typing python OldFileGone.py in the command prompt or terminal.

The script will run and delete any files in the specified directory that are older than the specified number of hours.

Features

  1. Automatically deletes files in a specified directory that are older than a certain number of hours
  2. Easy to use and configure
  3. Customizable directory path, time interval, and loop sleep time
  4. Lightweight and fast
  5. Compatible with Python 3

License

This script is released under the MIT license. See the LICENSE file for more information.

oldfilegone's People

Contributors

amirtahamim avatar

Watchers

 avatar

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.