mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-29 09:07:17 -04:00
Logging Updates (#978)
* log_file ensures directory exists * Fix audio timestamp path * Fix auto inc, add subfolder for recordings * Fix auto inc and support subfolder
This commit is contained in:
parent
8b395239d2
commit
a8cdde7bea
22 changed files with 132 additions and 62 deletions
|
@ -35,6 +35,10 @@ using namespace lpc43xx;
|
|||
class LogFile {
|
||||
public:
|
||||
Optional<File::Error> append(const std::filesystem::path& filename) {
|
||||
auto result = ensure_directory(filename.parent_path());
|
||||
if (result.code())
|
||||
return { result };
|
||||
|
||||
return file.append(filename);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue