Skip to content

Windows: --delete-on-success never works #280

Description

@oitos

I've run the command in CMD, PowerShell and elevated PowerShell and it seems no matter what, the file cannot be deleted.
Command:
telegram-upload.exe -d file.mp4

Error:
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\user\\Downloads\\file.mp4'

Doesn't matter which file. The files are not in use. Have not even been touched since a reboot.
I've even tried closing all apps as well as explorer.exe fully, only opening Windows Terminal from Task Manager.
No dice.

Have you had delete on success working on Windows?
Works as expected on Linux. Probably a Windows-specific bug?

pip install telegram-upload
Requirement already satisfied: telegram-upload in c:\program files\python311\lib\site-packages (0.7.1)
[...]

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