Documentation
¶
Overview ¶
Package hardlink provides filesystem hardlink detection utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsAnyHardlinked ¶
IsAnyHardlinked returns true if at least one REGULAR file has link count > 1. Directories, symlinks, and non-regular files are skipped. Inaccessible files are skipped. Handles both relative paths (joined with basePath) and absolute paths.
func LinkInfo ¶
LinkInfo returns the unique file identifier and link count for a file. On Unix systems, fileID is composed of device ID and inode number. This enables hardlink accounting to distinguish between: - hardlinks within the torrent set (cross-seeds) - hardlinks outside the torrent set (arr imports)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.