view include/core/filesystem.h @ 60:d417e9381ca5

filesystem: WIP class-ification of paths
author Paper <mrpapersonic@gmail.com>
date Fri, 29 Sep 2023 13:52:50 -0400
parents 327e9a5c72f1
children 327568ad9be9
line wrap: on
line source

#ifndef __core__filesystem_h
#define __core__filesystem_h
#include <string>

namespace Filesystem {

bool CreateDirectories(const std::string& path);
bool Exists(const std::string& path);
std::string Basename(const std::string& path);
std::string Stem(const std::string& path);
std::string GetParentDirectory(const std::string& path);
std::string GetDotPath(); // %APPDATA%/minori, ~/Library/Application Support/minori, ~/.config/minori...
std::string GetConfigPath(); // (dotpath)/config.json
std::string GetAnimeDBPath(); // (dotpath)/anime/db.json

} // namespace Filesystem

#endif // __core__filesystem_h