|
|
|
|
@ -20,10 +20,10 @@ const fs::path &orders::get_path() {
|
|
|
|
|
|
|
|
|
|
orders::orders(const with_data_directory &dir) |
|
|
|
|
: json(json::array()), data_directory(dir) { |
|
|
|
|
if (!fs::exists(get_path())) { |
|
|
|
|
write(); |
|
|
|
|
} else { |
|
|
|
|
if (fs::exists(get_path())) { |
|
|
|
|
load(); |
|
|
|
|
} else { |
|
|
|
|
write(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|