Skip to content

Commit

Permalink
update docs (fixes #357)
Browse files Browse the repository at this point in the history
  • Loading branch information
tfeldmann committed Feb 22, 2024
1 parent c5fe7cd commit 749db29
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,17 +76,19 @@ All your environment variables. You can access individual env vars like this: `{

`{path}` ([`pathlib.Path`](https://docs.python.org/3/library/pathlib.html#methods-and-properties))<br>
The full path to the current file / folder on the local harddrive.
This is not available for remote locations - in this case use `fs` and `fs_path`.

`{relative_path}` (`str`)<br>
the relative path of the current file or dir.

`{now}` (`datetime`)<br>
`{now()}` (`datetime`)<br>
The current datetime in the local timezone.

`{utcnow}` (`datetime`)<br>
`{utcnow()}` (`datetime`)<br>
The current UTC datetime.

`{today()}` (`date`)<br>
Today's date.

In addition to that nearly all filters add new placeholders with information about
the currently handled file / folder.

Expand Down

0 comments on commit 749db29

Please sign in to comment.