Skip to content

Sorter will not move a video if it is larger than the size cap #3

@mtthwm

Description

@mtthwm

In the event that a video is too large to be uploaded, the script still tries to move it, but this seems to cause a windows error. Perhaps the file never gets closed?

[WARNING] [03/22/2024 03:06:00 AM] File too large to upload: Recording(room_number=None, date=2024-03-21, time=None, course_number_full=HONOR 4815, section_number=1, path=C:\LCfiles\HONOR-4815-1---3-21-2024.mp4)
[ERROR] [03/22/2024 03:06:31 AM] An error occurred while moving Recording(room_number=None, date=2024-03-21, time=None, course_number_full=HONOR 4815, section_number=1, path=C:\LCfiles\HONOR-4815-1---3-21-2024.mp4): [WinError 32] The process cannot access the file because it is being used by another process: 'C:\LCfiles\HONOR-4815-1---3-21-2024.mp4'
[INFO] [03/22/2024 03:06:31 AM] Sucessfully moved: Recording(room_number=None, date=2024-03-21, time=None, course_number_full=HONOR 4815, section_number=1, path=C:\LCfiles\HONOR-4815-1---3-21-2024.mp4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions