Skip to content

Modern Fs DiskSpace TotalBytes

Paul Squires edited this page Oct 19, 2026 · 5 revisions

Home › Filesystem › Filesystem Library › DiskSpace.TotalBytes

DiskSpace.TotalBytes

Returns the capacity of the volume in bytes.

Syntax

DiskSpace.TotalBytes

Examples

#import "std/fs"
using fs

dim sp as DiskSpace = GetDiskSpace( "." ).Value( )

print sp.TotalBytes > 0      '' -1 (true)

'' The capacity of the VOLUME the path is on -- not of the directory,
'' and not of any quota applied to you
print sp.TotalBytes >= sp.FreeBytes        '' -1 (true)

Library: Filesystem Library
Category: Filesystem
Documented under: Volumes

Clone this wiki locally