view include/core/filesystem.h @ 378:5912dafc6e28

anime: add poster cache :)
author Paper <paper@tflc.us>
date Wed, 05 Nov 2025 12:50:35 -0500
parents 47c9f8502269
children 5eaafed6c10b
line wrap: on
line source

#ifndef MINORI_CORE_FILESYSTEM_H_
#define MINORI_CORE_FILESYSTEM_H_
#include <filesystem>
#include <string>

namespace Filesystem {

void CreateDirectories(const std::filesystem::path &path);
std::filesystem::path GetDotPath();    // %APPDATA%/minori/, ~/Library/Application Support/minori/, ~/.config/minori/...
std::filesystem::path GetConfigPath(); // (dotpath)/config.json
std::filesystem::path GetAnimeDBPath();  // (dotpath)/anime/db.json
std::filesystem::path GetTorrentsPath(); // (dotpath)/torrents/...
std::filesystem::path GetAnimePostersPath(); // (dotpath)/anime/posters/

} // namespace Filesystem

#endif // MINORI_CORE_FILESYSTEM_H_