Skip to content

hgrsd/duplik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Duplik

Duplik is a small tool to detect duplicate files. Duplicate detection is done based on Blake 3 hashes of files combined with their sizes, ignoring empty files. Duplicates will be output as JSON.

duplik:main* λ duplik -D 4 . | jq
[
  {
    "shortHash": "a7239b44140bb930",
    "bytes": 432136,
    "paths": [
      ".zig-cache/o/33bab1f3dd40ff9a1f36a1cd419b7e77/duplik",
      "zig-out/bin/duplik"
    ]
  },
  {
    "shortHash": "efe85429b396b1bf",
    "bytes": 41,
    "paths": [
      ".git/refs/heads/max-depth",
      ".git/refs/remotes/origin/max-depth"
    ]
  }
]

Installation

  1. Install Zig
  2. Clone this repo and cd into the repo root.
  3. Run zig build -Doptimize=ReleaseFast to compile the executable
  4. Copy zig-out/bin/duplik to somewhere on your PATH (e.g., ~/.local/bin).

Usage

usage: duplik [options] <directory path>

options:
    -D/--max-depth <n> sets maximum recursion depth; default: 0

About

Zig-based CLI to detect duplicate files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages