Giter VIP home page Giter VIP logo

desktopmanager's Introduction

该项目可根据配置文件规则整理桌面,实现桌面目录自动分类功能。

配置文件说明

targetBaseDir: D:\BaiduNetdiskWorkspace
sourceBaseDir: null
rule:
  - dirName: img
    regualr:
      - .*\.jpg$
      - .*\.png$
  - dirName: 
    regular: 
      - tmp
excludeRules:
  - ^BaiduNetdiskWorkspace.*

targetBaseDir

目标目录,将源目录中的「文件或目录」移动到「目标目录或其子目录下」。

sourceBaseDir

源目录,若为 null,表示桌面。

rule

配置移动规则,比如下例:

rule:
  - dirName: img
    regualr:
      - .*\.jpg$
      - .*\.png$

如果源对象命中 regular 正则规则,则会将源对象移动到「目标目录/img」下。如果想直接移动到「目标目录」下,可以$

rule:
  - dirName: $
    regualr:
      - .*\.jpg$
      - .*\.png$

excludeRules

不移动的文件,比如下面配置表示不移动符合规则^BaiduNetdiskWorkspace.*的文件或目录:

excludeRules:
  - ^BaiduNetdiskWorkspace.*

todo

  • 删除长时间未使用的文件和空目录,删除时给予提示

desktopmanager's People

Watchers

James Cloos avatar Dongle avatar

Forkers

it-heima

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.