GithubHelp home page GithubHelp logo

aaronkingpz / hlink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from likun7981/hlink

0.0 0.0 0.0 1.08 MB

批量硬链接创建工具,又能PT做种,又能刮削电影资料

Home Page: hlink.likun7981.vercel.app

License: MIT License

JavaScript 19.36% Smarty 5.50% TypeScript 75.14%

hlink's Introduction

hlink

npm package node version npm download

所需环境:

nodejs 10 以上;

安装

$ npm install -g hlink

# 查看帮助

$ hlink --help

功能:

  1. 批量创建源地址下面所有视频文件 硬链 到目标地址
  2. 重复硬链检测,就算硬链接已改名也能检查到
  3. 批量删除源地址在目标地址所创建的硬链

使用

使用

效果截图

创建

重复创建

删除目录

删除文件

威联通关联环境变量

由于威联通重启后会重置部分配置,而且威联通安装node后默认没有设置环境变量,所以需要配置开机启动脚本来进行自动配置 hlink 到环境变量中,不然很麻烦

  1. ssh 登录你的威联通机器 执行以下命令
$ mount $(/sbin/hal_app --get_boot_pd port_id=0)6 /tmp/config
  1. 编辑autorun.sh脚本
$ vim /tmp/config/autorun.sh

添加以下脚本到autorun.sh

ln -s  /share/CACHEDEV1_DATA/.qpkg/NodeJS/bin/hlink /usr/local/bin/hlink

其中/share/CACHEDEV1_DATA/.qpkg/NodeJS/bin/hlink 为你npm安装后的hlink 路径,根据各自的路径进行更换

  1. 给autorun.sh添加执行权限
$ chmod +x /tmp/config/autorun.sh
  1. 开启用户自定义脚本

控制台 > 硬盘 > 启动时运行用户定义的进程 打上勾,最后别忘记点击应用

删除文件

  1. 卸载/tmp/config
$ umount /tmp/config

License

MIT

hlink's People

Contributors

likun7981 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.