Files
anm2ed/src/util/filesystem_.h
2025-12-13 02:51:10 -05:00

29 lines
739 B
C++

#pragma once
#include <filesystem>
#include <string>
namespace anm2ed::util::filesystem
{
std::filesystem::path path_preferences_get();
std::filesystem::path path_to_lower(const std::filesystem::path&);
std::filesystem::path path_backslash_replace(const std::filesystem::path&);
bool path_is_exist(const std::filesystem::path&);
bool path_is_extension(const std::filesystem::path&, const std::string&);
std::filesystem::path path_lower_case_backslash_handle(const std::filesystem::path&);
FILE* open(const std::filesystem::path&, const char*);
class WorkingDirectory
{
public:
std::filesystem::path previous;
WorkingDirectory(const std::filesystem::path&, bool = false);
~WorkingDirectory();
};
}