Skip to content

Modern Fs VolumeInfo MaxComponentLen

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

Home › Filesystem › Filesystem Library › VolumeInfo.MaxComponentLen

VolumeInfo.MaxComponentLen

Returns the longest file or folder name the volume allows, not the longest path.

Syntax

VolumeInfo.MaxComponentLen

Examples

#import "std/fs"
using fs

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

print v.MaxComponentLen > 0  '' -1 (true) -- 255 on NTFS and on ext4

'' The longest SINGLE COMPONENT, not the longest path -- the two limits
'' are different and only this one is reported here

Library: Filesystem Library
Category: Filesystem
Documented under: Volumes

Clone this wiki locally