---
title: "File Name Match"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/lib/os/filenamematch
markdown: https://docs.nodetool.ai/nodes/lib/os/filenamematch.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/lib/os/filenamematch.md
---

# File Name Match

**Type:** `lib.os.FileNameMatch`

**Namespace:** `lib.os`

## Description

Match a filename against a pattern using Unix shell-style wildcards.
    files, pattern, match, filter

    Use cases:
    - Filter files by name pattern
    - Validate file naming conventions
    - Match file extensions

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| filename | `str` | Filename to check | `` |
| pattern | `str` | Pattern to match against (e.g. *.txt, data_*.csv) | `*` |
| case_sensitive | `bool` | Whether the pattern matching should be case-sensitive | `true` |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| output | `bool` |  |

## Related Nodes

Browse other nodes in the [lib.os](./) namespace.
