FileGetCompressedSize Method (String) |
[AlphaFS] Retrieves the actual number of bytes of disk storage used to store a specified file.
Namespace: Alphaleonis.Win32.FilesystemAssembly: AlphaFS (in AlphaFS.dll) Version: 2.0
Syntax public static long GetCompressedSize(
string path
)
Public Shared Function GetCompressedSize (
path As String
) As Long
public:
static long long GetCompressedSize(
String^ path
)
static member GetCompressedSize :
path : string -> int64
Parameters
- path
- Type: SystemString
The name of the file.
Return Value
Type:
Int64The actual number of bytes of disk storage used to store the specified file.
Remarks
If the file is located on a volume that supports compression and the file is compressed, the value obtained is the compressed size
of the specified file. If the file is located on a volume that supports sparse files and the file is a sparse file, the value
obtained is the sparse size of the specified file.
See Also