Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between TotalFreeSpace and AvailableFreeSpace

Tags:

c#

.net

Unable to understand the difference between TotalFreeSpace and AvailableFreeSpace

like image 395
Tarek Saied Avatar asked Sep 01 '11 20:09

Tarek Saied


1 Answers

The documentation on DriveInfo.TotalFreeSpace and on DriveInfo.AvailableFreeSpace tell you respectively:

Remarks (TotalFreeSpace)

This property indicates the total amount of free space available on the drive, not just what is available to the current user.

Remarks (AvailableFreeSpace)

This property indicates the amount of free space available on the drive. Note that this number may be different from the TotalFreeSpace number because this property takes into account disk quotas.

like image 95
BoltClock Avatar answered Oct 02 '22 14:10

BoltClock