pub fn available_bytes(library_root: &Path) -> Result<u64, LibraryError>Expand description
The library volume’s available bytes — a thin statvfs / GetDiskFreeSpaceEx
wrapper over the filesystem holding library_root.
Reports the space available to an unprivileged process (POSIX f_bavail, not the
root-reserved f_bfree), so the number matches what an import can actually write. On
Unix it is f_bavail × f_frsize; on Windows it is GetDiskFreeSpaceExW’s
free-bytes-available-to-caller. Any other target is a compile-time error rather than a
silent wrong answer.