Skip to content

Modern Fs VolumeInfo RootPath

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

Home › Filesystem › Filesystem Library › VolumeInfo.RootPath

VolumeInfo.RootPath

Returns where the volume is mounted, such as C:\ or /.

Syntax

VolumeInfo.RootPath

Examples

#import "std/fs"
using fs

dim v as VolumeInfo = GetVolumeInfo( "." ).Value( )

print len( v.RootPath ) > 0  '' -1 (true) -- "C:\", "/" or "\\srv\share\"

'' The mount point the queried path lives on, which is what PathRoot
'' would give for a local path and what it cannot give for a mounted
'' subdirectory

Library: Filesystem Library
Category: Filesystem
Documented under: Volumes

Clone this wiki locally