Documentation
¶
Overview ¶
Package fsutil provides filesystem utilities for hardlink operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SameFilesystem ¶
SameFilesystem checks if two paths are on the same filesystem. This is required for hardlinks, which cannot span filesystems. Returns true if both paths are on the same filesystem, false otherwise. Returns an error if either path doesn't exist or cannot be accessed.
Implementation is platform-specific:
- Unix: compares device IDs from stat(2)
- Windows: compares volume serial numbers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.