mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-08-14 05:17:39 +00:00
Add std::filesystem::filesystem_error object.
Not a standards-compliant implementation, but has the same vague shape, so should be easier to port later(?).
This commit is contained in:
@@ -76,6 +76,16 @@ std::string next_filename_stem_matching_pattern(const std::string& filename_stem
|
||||
namespace std {
|
||||
namespace filesystem {
|
||||
|
||||
struct filesystem_error {
|
||||
const BYTE err;
|
||||
|
||||
operator bool() const {
|
||||
return err != FR_OK;
|
||||
}
|
||||
|
||||
std::string what() const;
|
||||
};
|
||||
|
||||
using path = std::string;
|
||||
using file_status = BYTE;
|
||||
|
||||
|
Reference in New Issue
Block a user