Coder Social home page Coder Social logo

m4k4r / filesyncmonitor Goto Github PK

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

FileSyncMonitor is a Python script designed to monitor changes in a specified folder and automatically synchronize files when saved in Visual Studio Code. This script provides a convenient solution for users who need to keep files synchronized between their local development environment and a specified directory.

License: MIT License

Batchfile 39.82% Python 60.18%

filesyncmonitor's Introduction

File Watcher and Synchronizer

This Python script monitors changes in a specified folder and executes a synchronization command when a file is saved in Visual Studio Code.

Setup

  1. Clone this repository to your local machine.
  2. Navigate to the project directory.

Requirements

  • Python 3.x
  • pip (Python package manager)

Installation

Install the required Python packages using pip:

pip install -r requirements.txt

Usage

  1. Customize the folder_path variable in watcher.py to specify the folder you want to monitor.
  2. Customize the sync_command variable in watcher.py to specify the synchronization command you want to execute.
  3. Run the launcher_watcher.cmd script to start the watcher.

Notes

  • This script assumes that Visual Studio Code is installed on your system and running as Code.exe.
  • The synchronization command (sync.cmd) is a placeholder. You should customize it according to your synchronization requirements.
  • Press Ctrl + S in Visual Studio Code to trigger the synchronization command when saving a file.

Contributions

Contributions are welcome! While the script is primarily tailored for personal use to streamline tasks, there might be bugs or areas for improvement. Feel free to contribute by opening an issue or submitting a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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.