| Conditions | 2 |
| Total Lines | 24 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """ |
||
| 79 | |||
| 80 | def get_folder(collection: str) -> pathlib.Path: |
||
| 81 | """ |
||
| 82 | Get a folder. |
||
| 83 | |||
| 84 | Arguments |
||
| 85 | --------- |
||
| 86 | collection |
||
| 87 | The collection name |
||
| 88 | |||
| 89 | Returns |
||
| 90 | ------- |
||
| 91 | pathlib.Path |
||
| 92 | The folder |
||
| 93 | """ |
||
| 94 | folder = pathlib.Path( |
||
| 95 | "share", |
||
| 96 | "pandoc_latex_tip", |
||
| 97 | collection, |
||
| 98 | ) |
||
| 99 | |||
| 100 | if not folder.exists(): |
||
| 101 | folder.mkdir(parents=True) |
||
| 102 | |||
| 103 | return folder |
||
| 108 |