public static uint GetDriveSectorSize(string path) { #if !__MonoCS__ && !USE_UNIX_IO uint size; uint dontcare; WinNative.GetDiskFreeSpace(Path.GetPathRoot(path), out dontcare, out size, out dontcare, out dontcare); return(size); #else return(0); #endif }
public uint GetDriveSectorSize(string path) { WinNative.GetDiskFreeSpace(Path.GetPathRoot(path), out _, out var size, out _, out _); return(size); }