Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dated subdirectories #413

Merged
merged 13 commits into from
Sep 19, 2023
Merged

Dated subdirectories #413

merged 13 commits into from
Sep 19, 2023

Conversation

charlie-foxtrot
Copy link
Owner

@charlie-foxtrot charlie-foxtrot commented Sep 16, 2023

@marcin-osowski can you take a look? This is basically the same as your #407 except I took the opportunity to convert char * to string and moved to a new source file so unit tests can be added

marcin-osowski and others added 6 commits August 31, 2023 23:29
When output files collected with split_on_transmission are being
collected for a long time the output directories become inconvenient
to navigate. They can have a huge amount of individual .mp3 files.
This patch adds a configuration option that will put files in
dated subdirectories.

For example, the file:
  output_dir/prefix_20230831_204504.mp3

with the dated_subdirectories option will be saved like so:
  output_dir/2023/08/31/prefix_20230831_204504.mp3

Proposed wiki addition:
* `dated_subdirectories` (boolean, optional) - when enabled will create daily
  subdirectories under the specified directory. The directories follow the
  pattern directory/YYYY/MM/DD. The default is false.
Closing a memory leak from previous commit.
- pull file / directory methods into new helper_functions.cpp/h
- add unit tests for helper_functions
Copy link

@marcin-osowski marcin-osowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for improving it :)

src/helper_functions.cpp Outdated Show resolved Hide resolved
src/helper_functions.cpp Outdated Show resolved Hide resolved
src/helper_functions.cpp Outdated Show resolved Hide resolved
src/test_helper_functions.cpp Outdated Show resolved Hide resolved
@marcin-osowski
Copy link

Left a few comments. Looks good!

@charlie-foxtrot
Copy link
Owner Author

Left a few comments. Looks good!

not seeing any new comments . . . .

src/helper_functions.cpp Outdated Show resolved Hide resolved
src/test_helper_functions.cpp Outdated Show resolved Hide resolved
src/helper_functions.cpp Outdated Show resolved Hide resolved
Copy link

@marcin-osowski marcin-osowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for improving this!

@charlie-foxtrot charlie-foxtrot merged commit c0ce434 into unstable Sep 19, 2023
@charlie-foxtrot charlie-foxtrot deleted the dated_subdirectories branch September 19, 2023 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants