Parasol Framework
  • Gallery
  • API
  • Wiki
  • GitHub
    • Audio
    • Core
    • Display
    • Fluid
    • Font
    • Network
    • Vector
    • Audio
    • Sound
    • File
    • MetaClass
    • Module
    • StorageDevice
    • Task
    • Thread
    • Time
    • Compression
    • Config
    • Script
    • XML
    • Controller
    • BlurFX
    • ColourFX
    • CompositeFX
    • ConvolveFX
    • DisplacementFX
    • FilterEffect
    • FloodFX
    • ImageFX
    • LightingFX
    • MergeFX
    • MorphologyFX
    • OffsetFX
    • RemapFX
    • SourceFX
    • TurbulenceFX
    • WaveFunctionFX
    • Scintilla
    • ScintillaSearch
    • Bitmap
    • Clipboard
    • Display
    • Document
    • Font
    • Picture
    • Pointer
    • Surface
    • SVG
    • ClientSocket
    • HTTP
    • NetSocket
    • Proxy
    • Vector
    • VectorClip
    • VectorColour
    • VectorEllipse
    • VectorFilter
    • VectorGradient
    • VectorGroup
    • VectorImage
    • VectorPath
    • VectorPattern
    • VectorPolygon
    • VectorRectangle
    • VectorScene
    • VectorShape
    • VectorSpiral
    • VectorText
    • VectorTransition
    • VectorViewport
    • VectorWave

StorageDevice Class

Queries the meta data of file system volumes.

The StorageDevice class returns the meta data of file system volumes. A reference to an existing volume is required in the Volume field in order to make a successful analysis. If the volume name cannot be resolved, initialisation will fail.

Following initialisation, all meta fields describing the volume are readable for further information.

Structure

The StorageDevice class consists of the following fields:

Access
NameTypeComment
  BytesFreeINT64Total amount of storage space that is available, measured in bytes.
  BytesUsedINT64Total amount of storage space in use.

The total amount of storage space used by the device is indicated in this field.

Please note that storage usage is typically measured in terms of blocks. For instance a block size of 512 bytes will mean that this field will be a multiple of 512. Two files of 1 byte each on such a file system would take up 1024 bytes of space and not 2.

  DeviceFlagsDEVICEThese read-only flags identify the type of device and its features.
NameDescription
DEVICE::BOOKMARKThis marker indicates that the presented volume is a bookmark and not a device name.
DEVICE::COMPACT_DISCCompact disc style device
DEVICE::FIXEDCatch-all for fixed media devices that are not directly identifiable.
DEVICE::FLOPPY_DISKFloppy disk style device
DEVICE::HARD_DISKHard disk style device
DEVICE::MEMORYDevice is RAM, ROM, WORM, NVRAM, flashdisk or other form of memory. Does not guarantee a fast connection as it could be over a slow USB 1.1 connection for example
DEVICE::MODEMDevice is a modem.
DEVICE::NETWORKDevice represents a network link
DEVICE::PRINTERDevice is a paper-based printer.
DEVICE::PRINTER_3DDevice is a three dimensional printer.
DEVICE::READDevice is readable
DEVICE::REMOVABLEDevice media is removable from the hardware
DEVICE::REMOVEABLEDevice media is removable from the hardware
DEVICE::SCANNERDevice is a two dimensional scanner.
DEVICE::SCANNER_3DDevice is a three dimensional scanner.
DEVICE::SOFTWAREDevice is virtual/software defined
DEVICE::TAPETape/Stream style device
DEVICE::TEMPORARYAll storage is temporary
DEVICE::USBRemovable USB storage device. May be further qualified by HARD_DISK, FLOPPY_DISK etc
DEVICE::WRITEDevice is writeable
  DeviceIDSTRINGA unique ID for the mounted device (platform dependent, NULL if unavailable).

If a volume expresses a unique device identifier such as a factory serial number, it will be readable from this field.

  DeviceSizeINT64The storage size of the device in bytes, without accounting for the file system format.

This field indicates the storage size of the device. It does not reflect the available space determined by the device's file system, which will typically be measurably smaller than this value.

  VolumeSTRINGThe volume name of the device to query.

Set the Volume field prior to initialisation for that volume to be queried by the object. The standard volume string format is name:, but omitting the colon or defining complete file system paths when writing this field is also acceptable. Any characters following a colon will be stripped automatically with no ongoing functional impact.

StorageDevice class documentation © Paul Manias 1996-2025

DEVICE Type

NameDescription
DEVICE::BOOKMARKThis marker indicates that the presented volume is a bookmark and not a device name.
DEVICE::COMPACT_DISCCompact disc style device
DEVICE::FIXEDCatch-all for fixed media devices that are not directly identifiable.
DEVICE::FLOPPY_DISKFloppy disk style device
DEVICE::HARD_DISKHard disk style device
DEVICE::MEMORYDevice is RAM, ROM, WORM, NVRAM, flashdisk or other form of memory. Does not guarantee a fast connection as it could be over a slow USB 1.1 connection for example
DEVICE::MODEMDevice is a modem.
DEVICE::NETWORKDevice represents a network link
DEVICE::PRINTERDevice is a paper-based printer.
DEVICE::PRINTER_3DDevice is a three dimensional printer.
DEVICE::READDevice is readable
DEVICE::REMOVABLEDevice media is removable from the hardware
DEVICE::REMOVEABLEDevice media is removable from the hardware
DEVICE::SCANNERDevice is a two dimensional scanner.
DEVICE::SCANNER_3DDevice is a three dimensional scanner.
DEVICE::SOFTWAREDevice is virtual/software defined
DEVICE::TAPETape/Stream style device
DEVICE::TEMPORARYAll storage is temporary
DEVICE::USBRemovable USB storage device. May be further qualified by HARD_DISK, FLOPPY_DISK etc
DEVICE::WRITEDevice is writeable
StorageDevice module documentation © Paul Manias 1996-2025