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