Git Product home page Git Product logo

yunpan_pi's Introduction

==全量同步逻辑

  • 获取远程(yunpan) 文件目录树并排序
  • 获取本地(local) 文件目录树并排序
  • 目录树比较
    • 远程存在,本地不存在的目录或文件
    • 本地存在,远程不存在的目录或文件
    • 本地和远程都存在的文件列表
      • 按最后修改时间,文件大小,md5判断
      • 选择下载或上传动作
  • 写同步任务执行方案文件 (SyncJob)
    • 按方案顺序执行
    • 纪录执行的进度日志文件
    • Commit 日志文件
    • 生成冲突纪录

==增量同步逻辑

  • 获得一个文件变化事件
    • 新增
    • 删除
    • 更新
  • 累计5分钟的变化事件,生成SyncJob
    • 提交SyncJob执行

ABOUT

A command line based cloud disk client designed for Raspberry Pi, implemented in Go. It should also work on other platforms.

yunpan_pi's People

Contributors

hugozhu avatar

Watchers

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