Skip to content

Commit

Permalink
Merge branch 'main' of github.com:loreanvictor/tmplr
Browse files Browse the repository at this point in the history
  • Loading branch information
loreanvictor committed Jan 5, 2024
2 parents 39a612b + 10dc8a3 commit e8c37b2
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,23 @@ exists: '**/*'
include hidden: true
```
> [!IMPORTANT]
> `exists` only checks for existence of files, and ignores directories. So this is wrong:
> ```yaml
> # ❌ WRONG
> exists: 'my-dir/'
> ```
> Use `**/*` glob pattern instead:
> ```yaml
> # ✅ CORRECT
> exists: 'my-dir/**/*'
> ```
<br>
#### From File
Expand Down

0 comments on commit e8c37b2

Please sign in to comment.