Skip to content

Remove temporary files #39

@JPTIZ

Description

@JPTIZ

There are some files that are created by pico-bot that are never deleted automatically (example:

video_path = MEDIA_DIR / f'{VIDEO_PREFIX}{user_id}.webm'
). They should be some kind of cleanup.

We could either use a context-manager like autodelete(path) where these files are used (to ensure they'll be deleted upon cleanup) or use stdlib's tempfile (as they're temporary files used only to upload videos to Telegram).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions