Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl regularly produces video files that can't be deleted, moved or renamed #22052
Comments
|
This has nothing to do with youtube-dl. Either your disk is damaged/has bads or something locks files. Use LockHunter or similar tool for the latter. |
Verbose log
Description
youtube-dl regularly produces video files that cannot be deleted, moved or renamed.
The files can be copied but the copy may have the same traits (undeletable, unmovable, unrenamable).
Restarting the computer can help but usually doesn't.
The files play fine in media players.
Attempting to delete or move one of these files results in a prompt that says "preparing to delete" of "moving" but the prompt never goes away.
Sometimes the cancel button will get rid of the prompt. If not, restarting the computer or killing the explorer.exe process appears to be the only way to get rid of it.
Attempting to rename one of these files results in the explorer window hanging, at which point the explorer.exe process needs to be killed or the computer restarted.
Sometimes, when renaming one of the files, the explorer window will just hang for a long time (rather than permanently) and the file will actually eventually be renamed.
In that case (when the file is renamed), it becomes possible to delete it.
youtube-dl is the only software that has ever produced such files on my drive.
At least two previous versions of youtube-dl also produced these files.
I still have video files (created by youtube-dl) from last year on my drive, that I still can't delete, move or rename. I even tried several pieces of software created for deleting 'undeletable' files and they were not able to delete the files.
The bug has been reproducable every time for me thus far using the following command:
YouTube-dl0\command line\a>youtube-dl -v -f 247+bestaudio http://www.youtube.com/watch?v=X0nk4HqPzrY