Skip to content

Modern Fs FileInfo IsDirectory

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

Home › Filesystem › Filesystem Library › FileInfo.IsDirectory

FileInfo.IsDirectory

Returns true if the path is a folder.

Syntax

FileInfo.IsDirectory( )

Examples

#import "std/fs"
using fs

dim td as FsResultUStr = CreateTempDir( "fbdoc" )
dim as ustring dir_ = td.Value( )
dim as ustring p = PathJoin( dir_, "f.txt" )
WriteAllText( p, "hello" )

print Stat( dir_ ).Value( ).IsDirectory( )        '' true
print Stat( p ).Value( ).IsDirectory( )           '' false

RemoveDirAll( dir_ )

Library: Filesystem Library
Category: Filesystem
Documented under: Metadata

Clone this wiki locally