# Load Files by Path

<figure><img src="/files/kRt6wwy3yCTgAgmh5qJG" alt=""><figcaption></figcaption></figure>

### Globs

[Glob syntax](https://en.wikipedia.org/wiki/Glob_\(programming\)) is a way of specifying sets of filenames with wildcard characters. Here's a comprehensive explanation of different types of glob syntax:

1. **Asterisk (\*)**: Matches any number of characters (including none). For instance, `*.txt` matches any file with an `.txt` extension.
2. **Question Mark (?)**: Matches any single character. For example, `?.txt` would match `a.txt`, `b.txt`, but not `ab.txt`.
3. **Character Ranges \[ ]**: Matches any one of the enclosed characters. A range of characters can be specified with a dash. For example, `[a-c].txt` matches `a.txt`, `b.txt`, and `c.txt`.
4. **Negated Character Ranges \[! ]**: Matches any character not enclosed. For example, `[!a-c].txt` would match `d.txt` but not `a.txt`, `b.txt`, or `c.txt`.
5. **Curly Braces { }**: Matches any of the comma-separated patterns inside the braces. For example, `{file, test}.txt` matches `file.txt` and `test.txt`.
6. **Literal Match**: Any character not part of a special glob pattern (like `*`, `?`, `[ ]`, `{ }`) matches itself.
7. **Backslash Escaping**: A backslash can be used before a special character to treat it as a regular character. For example, `\\*` would match an actual asterisk `*`.
8. **Globstar**: Used to match directories and files within. For example, `**/*.txt` matches all `.txt` files in all directories and subdirectories.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.filestar.com/advanced/load-files-by-path.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
