Skip to content

Modern Fs DiskSpace FreeBytes

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

Home › Filesystem › Filesystem Library › DiskSpace.FreeBytes

DiskSpace.FreeBytes

Returns the free bytes on the volume, ignoring quotas; the number to report.

Syntax

DiskSpace.FreeBytes

Examples

#import "std/fs"
using fs

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

'' Free on the volume, IGNORING QUOTA -- the number to REPORT
print sp.FreeBytes <= sp.TotalBytes        '' -1 (true)

'' AvailableBytes is the one to BRANCH on: under a quota it is smaller,
'' and it is what a write will actually be allowed to use
print sp.AvailableBytes <= sp.FreeBytes    '' -1 (true)

Library: Filesystem Library
Category: Filesystem
Documented under: Volumes

Clone this wiki locally