view include/core/filesystem.h @ 242:82470f83f0c2

autotools: make windows build work also, I've added back the method I made for getting the vars as variables rather than separate files, so less clutter in tmp folders :)
author Paper <paper@paper.us.eu.org>
date Mon, 22 Jan 2024 19:06:23 -0800
parents 2f5a9247e501
children 862d0d8619f6
line wrap: on
line source

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

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/...

} // namespace Filesystem

#endif // __core__filesystem_h