Mercurial > minori
annotate include/core/filesystem.h @ 379:5eaafed6c10b
*: clang-format
| author | Paper <paper@tflc.us> |
|---|---|
| date | Wed, 05 Nov 2025 12:59:46 -0500 |
| parents | 5912dafc6e28 |
| children | 0265e125f680 |
| rev | line source |
|---|---|
|
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
1 #ifndef MINORI_CORE_FILESYSTEM_H_ |
|
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
2 #define MINORI_CORE_FILESYSTEM_H_ |
| 258 | 3 #include <filesystem> |
| 11 | 4 #include <string> |
| 5 | |
| 6 namespace Filesystem { | |
| 7 | |
| 369 | 8 void CreateDirectories(const std::filesystem::path &path); |
| 258 | 9 std::filesystem::path GetDotPath(); // %APPDATA%/minori/, ~/Library/Application Support/minori/, ~/.config/minori/... |
| 10 std::filesystem::path GetConfigPath(); // (dotpath)/config.json | |
| 379 | 11 std::filesystem::path GetAnimeDBPath(); // (dotpath)/anime/db.json |
| 12 std::filesystem::path GetTorrentsPath(); // (dotpath)/torrents/... | |
| 378 | 13 std::filesystem::path GetAnimePostersPath(); // (dotpath)/anime/posters/ |
| 11 | 14 |
| 36 | 15 } // namespace Filesystem |
| 11 | 16 |
|
261
3ec7804abf17
include: make header guards more sane
Paper <paper@paper.us.eu.org>
parents:
258
diff
changeset
|
17 #endif // MINORI_CORE_FILESYSTEM_H_ |
