test#

Disk utility functions testing path properties (e.g., writable, hardlinks, softlinks, etc.).

Functions#

file_path_is_writable(→ bool)

paths_on_same_device(→ bool)

Return whether two paths reside on the same filesystem device.

hardlink_supported(source_file, dest_dir)

softlink_supported(source_file, dest_dir)

file_path_is_writable(path) → bool#
paths_on_same_device(left: str | os.PathLike[str], right: str | os.PathLike[str]) → bool#

Return whether two paths reside on the same filesystem device.