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

Categorize timestamped #7

Merged
merged 3 commits into from
Mar 19, 2024
Merged

Categorize timestamped #7

merged 3 commits into from
Mar 19, 2024

Conversation

parisa-zahedi
Copy link
Member

categorize json files based on the given period, e.g. year or decade . To this end, it creates a directory for each period and move the related files there.

os.makedirs(timestamp_folder)

try:
move(timestamped_object.filename, timestamp_folder)
Copy link
Member

Choose a reason for hiding this comment

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

Looks good! If we choose to save a single json file for filtered files in the previous PR, We can have a single json file here for each timestamp instead of moving files.

@ShNadi ShNadi merged commit 2de5d28 into main Mar 19, 2024
3 checks passed
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