Skip to content

Modern Fs PatternIsRecursive

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

Home › Filesystem › Filesystem Library › PatternIsRecursive

PatternIsRecursive

Returns true if a pattern has a double-star part that searches every subfolder.

Syntax

PatternIsRecursive( pattern )

Examples

#import "std/fs"
using fs

'' ** means "this directory and everything under it"
print PatternIsRecursive( "src\**\*.bas" )        '' true
print PatternIsRecursive( "src\*.bas" )           '' false

'' Worth testing before a Glob, because a recursive pattern can walk an
'' arbitrarily large tree

Library: Filesystem Library
Category: Filesystem
Documented under: Glob

Clone this wiki locally