Giter Site home page Giter Site logo

rust.downloadwatcher's Introduction

Authors

Rust Download Folder Monitor

One of by biggest pet peeves as a server owner is working with developers and getting version after version fired at me to upload to servers.

If you're untidy like myself you end up with PluginName (1).cs and to be honest having to delete the original and rename the duplicate annoyed the everloving hell out of me.

We solved this in this script by monitoring the downloads folder for new files, upon seeing a new file of .json or .cs type we'll move the original version to a new folder created in Downloads.

Then it'll rename your latest copy to PluginName.cs or PluginName.json so you can upload it without any renaming shenanigans.

NOTE: This will only keep 2 versions - The Latest and the Previous.

Possible Future Updates

  • Full Backups of every version of your files organised into folders with dates/times.
  • Ability to monitor for any filetypes specified in config

Features

  • Monitors set download folder for incoming files
  • Moves, Renames, Deletes so you only have the latest version with the correct name PluginName.cs etc

Installation

Ensure Node.js is installed on the local machine

Install Packages using

npm i

Run the Bot using

node index.js

I wholeheartedly suggest you install this with NSSM so you don't need to run it when using it.

rust.downloadwatcher's People

Contributors

nexexmachina 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.