# Is It There? Test-Path

Test-Path answers one question, is this file or folder there, with True or False, and it can also say whether a path is a file or a folder and whether any file matches a wildcard, so you can check before you act.

![Cheat sheet for the lesson Is It There? Test-Path: Test-Path answers one question, is this file or folder there, with True or False, and it can also say whether a path is a file or a folder and whether any file matches a wildcard, so you can check before you act.](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/b103edcdf6ed45f3a0165b94d4e7d814.webp)

- Category: PowerShell
- Level: Apprentice
- Tags: boolean, operating-system, path, powershell, test-path
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-test-path-cheat-sheet
