GithubHelp home page GithubHelp logo

blinksynclib's Introduction

BlinkSyncLib file and directory synchronization library

##Introduction

BlinkSyncLib is a free file and directory synchronization library. It's based on source code of BlinkSync command line (http://blinksync.sourceforge.net).

How to use BlinkSyncLib

To copy all files from the SourceFolder to the TargetFolder.

Sync sync = new Sync(@"C:\SourceFolder", @"C:\TargetFolder");
sync.Start();

The more interesting form is when you include the "delete from destination" flag. This means to make the destination look EXACTLY like the source by deleting any files in the destination tree that don't appear in the source tree. This solves the problem of leaving copies of removed files "lying around" forever in the destination if you just use a standard file copy.

Sync sync = new Sync(@"C:\SourceFolder", @"C:\TargetFolder");
sync.Configuration.DeleteFromDest = true;
sync.Start();

There are many other options for more control if you need it.

  • DeleteFromDest: Delete files and directories in destination which do not appear in source
  • ExcludeFiles: Exclude files from source that match any of the filespecs
  • ExcludeDirs: Exclude directories from source that match any of the filespecs
  • ExcludeHidden: Exclude hidden files and directory from source
  • IncludeFiles: Only include files from source that match one of the filespecs
  • IncludeDirs: Only include directories from source that match one of the filespecs
  • DeleteExcludeFiles: Exclude files from deletion that match any of the filespecs
  • DeleteExcludeDirs: Exclude directories from deletion that match any of the filespecs

Include/exclude files options (IncludeFiles and ExcludeFiles) may not be combined. Include/exclude directories options (IncludeDirs and ExcludeDirs) may not be combined. Exclude-from-deletion options (DeleteExcludeFiles and DeleteExcludeDirs) require deletion (DeleteFromDest) enabled.

blinksynclib's People

Contributors

dvoituron avatar

Watchers

James Cloos 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.