Function fs2::allocation_granularity
source · pub fn allocation_granularity<P>(path: P) -> Result<u64>where
P: AsRef<Path>,
Expand description
Returns the filesystem’s disk space allocation granularity in bytes. The provided path may be for any file in the filesystem.
On Posix, this is equivalent to the filesystem’s block size. On Windows, this is equivalent to the filesystem’s cluster size.