Check for broken symlinks
Project description
Check Symlinks
Check for broken symbolic links.
$ check-symlinks
Broken symlink: some/path/broken_link
check-symlinks is optimized for large codebases as well as small, incremental checks,
where the full commands are respectively,
fd --type symlink --exec sh -c 'test -e "$0"'
check-symlinks
git ls-files | xargs pre_commit_hooks/check_symlinks.py
while read file; do test -e "$test"; done < <(git ls-files)
find . -type l -not -path data ! -exec test -e {} \; -print0 | xargs --no-run-if-empty git ls-files
and check_symlinks.py is from https://github.com/pre-commit/pre-commit-hooks.
Install
AUR:
check-symlinks is available from the Arch User Repository.
yay -S check-symlinks
pip:
check-symlinks is available as a pypi package.
pip install check-symlinks
go:
go install github.com/jmelahman/check-symlinks@latest
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file check_symlinks-0.5.1-py3-none-win_arm64.whl.
File metadata
- Download URL: check_symlinks-0.5.1-py3-none-win_arm64.whl
- Upload date:
- Size: 698.1 kB
- Tags: Python 3, Windows ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfa3c41c9c817d74d1be92e43ebd452b9d4001015fec0eae60ef98ae8ed8d199
|
|
| MD5 |
3c5a89eb1bc60ca7ca6d547343eccc02
|
|
| BLAKE2b-256 |
10f1b7c1a356721c595268bc8885439d3ee4b4d6e61a559af65ab18118fab973
|
File details
Details for the file check_symlinks-0.5.1-py3-none-win_amd64.whl.
File metadata
- Download URL: check_symlinks-0.5.1-py3-none-win_amd64.whl
- Upload date:
- Size: 757.7 kB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3acf9275a8fb1e5c030c7b5e1fe12ac5a6365886fc007639d5184e515d230d21
|
|
| MD5 |
973a60addbcc768150ff056033e6e5a8
|
|
| BLAKE2b-256 |
373919565b650ed05ad800dbf2ca95e3e77dc8076536fb37f96804564ff17aa0
|
File details
Details for the file check_symlinks-0.5.1-py3-none-manylinux_2_17_x86_64.whl.
File metadata
- Download URL: check_symlinks-0.5.1-py3-none-manylinux_2_17_x86_64.whl
- Upload date:
- Size: 709.5 kB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1af3095102bf24e725339287f712b057cdf7051043185b1423064f72b6906c2
|
|
| MD5 |
4f3f62298592942a17a52ac4746ce8d5
|
|
| BLAKE2b-256 |
0a9e4983ae885e48297658f709657238d973fb58aa465134de7a4fa8851c776d
|
File details
Details for the file check_symlinks-0.5.1-py3-none-manylinux_2_17_aarch64.whl.
File metadata
- Download URL: check_symlinks-0.5.1-py3-none-manylinux_2_17_aarch64.whl
- Upload date:
- Size: 664.2 kB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b14abb71330afbe958299f987ff580cb63946337ca69f6e27ae449dc7253d1c1
|
|
| MD5 |
e3e70fe88143640ce3b6d7df3f3f43a4
|
|
| BLAKE2b-256 |
7067932631190d2973fcfdeefb8c7fe170d952299d1cb88cecd8b465e02c89eb
|
File details
Details for the file check_symlinks-0.5.1-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: check_symlinks-0.5.1-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 686.6 kB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c783569455e2ea583fdd73e46ff466ec9cf05c6a5269e9f39bf7085ef67e3932
|
|
| MD5 |
40cb5b1702eca80b62a9ede2143a8a7f
|
|
| BLAKE2b-256 |
fff94dcaabbcde4dde7d9aeedb5baa912b298ef2da3c73ec46581aa80b19f857
|
File details
Details for the file check_symlinks-0.5.1-py3-none-macosx_10_12_x86_64.whl.
File metadata
- Download URL: check_symlinks-0.5.1-py3-none-macosx_10_12_x86_64.whl
- Upload date:
- Size: 718.4 kB
- Tags: Python 3, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5fcdb73d8a3d967c9f33d121e2854fa0dd87fb67f3fbbdd9c3a60aa589f842f4
|
|
| MD5 |
77996dd56b10a0a8ccbf3b8284eff3cd
|
|
| BLAKE2b-256 |
461050cc6c8d4a444cebaf7943153b76497cc060f1b46bb7b63d4cc1f19df7bb
|
File details
Details for the file check_symlinks-0.5.1-py3-none-any.whl.
File metadata
- Download URL: check_symlinks-0.5.1-py3-none-any.whl
- Upload date:
- Size: 709.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd77d193798c80bc4700cd0c480de75340a0dfda7fa4414fb7ec4f1bb81fb39c
|
|
| MD5 |
19303e4d9f62aad0bce9a9a1066753e9
|
|
| BLAKE2b-256 |
df876d00a0c86f76536a9c2ad7dbbac9b91fdc21a2d30cff5025bbd54d431df9
|