```sh
var = dirname path
```
This command will return the parent path of the provided path.<br>
If the parent path is empty, it will return none.
The path to extract the parent path from.
The parent path or none.
```sh
directory = dirname ./dir/file.txt
```