GithubHelp home page GithubHelp logo

Comments (1)

dongfangshu avatar dongfangshu commented on June 12, 2024

补上配置我的配置:
// 重要说明路径地址都请填写 绝对路径!!!!
export default {
/**

  • 源路径与目标路径的映射关系
  • 例子:
  • pathsMapping: {
  • '/path/to/exampleSource': '/path/to/exampleDest',
    
  • '/path/to/exampleSource2': '/path/to/exampleDest2'
    
  • }
    /
    pathsMapping: {
    '/share/transmission/downloads/complete/Documentary':'/share/Media/Documentary',
    '/share/transmission/downloads/complete/Animates':'/share/Media/Animates',
    '/share/transmission/downloads/complete/other':'/share/Media/other',
    '/share/transmission/downloads/complete/Bluray':'/share/Media/Bluray',
    '/share/transmission/downloads/complete/TV':'/share/Media/TV',
    '/share/transmission/downloads/complete/Movie':'/share/Media/Movie',
    '/share/transmission/downloads/complete/AV':'/share/Media/AV',
    '/share/transmission/downloads/complete/Music':'/share/Media/Music'
    },
    /
    *
  • 需要包含的后缀,如果与exclude同时配置,则取两者的交集
  • include 留空表示包含所有文件
  • 后缀不够用? 高阶用法: https://hlink.likun.me/other/v2.html#%E6%96%B0%E5%A2%9E%E5%8A%9F%E8%83%BD
    /
    include: [
    ],
    /
    *
  • 需要排除的后缀,如果与include同时配置,则取两者的交集
  • 后缀不够用? 高阶用法: https://hlink.likun.me/other/v2.html#%E6%96%B0%E5%A2%9E%E5%8A%9F%E8%83%BD
    /
    exclude: [],
    /
    *
  • @scope 该配置项 hlink 专用
  • 是否保持原有目录结构,为false时则只保存一级目录结构
  • 可选值: true/false
  • 例子:
    • 源地址目录为:/a
    • 目标地址目录为: /d
    • 链接的文件地址为 /a/b/c/z/y/mv.mkv;
  • 如果设置为true 生成的硬链地址为: /d/b/c/z/y/mv.mkv
  • 如果设置为false 生成的硬链地址为:/d/y/mv.mkv
    /
    keepDirStruct: true,
    /
    *
  • @scope 该配置项 hlink 专用
  • 是否打开缓存,为true表示打开
  • 可选值: true/false
  • 打开后,每次硬链后会把对应文件存入缓存,就算下次删除硬链,也不会进行硬链
    /
    openCache: true,
    /
    *
  • @scope 该配置项 hlink 专用
  • 是否为独立文件创建同名文件夹,为true表示创建
  • 可选值: true/false
    /
    mkdirIfSingle: true,
    /
    *
  • @scope 该配置项为 hlink prune 命令专用
  • 是否删除文件及所在目录,为false只会删除文件
  • 可选值: true/false
    */
    deleteDir: false,
    }

db.json内容
{
"configs": [
{
"name": "sync",
"description": "同步下载",
"configPath": "/config/configs/976e4815-dd52-4e2d-8aad-a60def554775.mjs"
}
],
"tasks": [
{
"name": "同步下载",
"type": "main",
"config": "sync",
"scheduleType": "loop",
"scheduleValue": "3600"
}
]
}

from hlink.

Related Issues (20)

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.